autotyping: --annotate-imprecise-magics: add imprecise type annotations for some additional magic methods

This commit is contained in:
Hugo van Kemenade 2022-04-03 12:49:01 +03:00
parent 7b9c73acb7
commit 14e091c870

View file

@ -31,6 +31,7 @@ import ssl
import tempfile import tempfile
import time import time
import xml.dom import xml.dom
from typing import Iterator
from urllib.parse import quote_plus from urllib.parse import quote_plus
from xml.dom import Node, minidom from xml.dom import Node, minidom
@ -795,7 +796,7 @@ class _ShelfCacheBackend:
def __contains__(self, key) -> bool: def __contains__(self, key) -> bool:
return key in self.cache_keys return key in self.cache_keys
def __iter__(self): def __iter__(self) -> Iterator:
return iter(self.shelf.keys()) return iter(self.shelf.keys())
def get_xml(self, key): def get_xml(self, key):