autotyping: --annotate-imprecise-magics: add imprecise type annotations for some additional magic methods
This commit is contained in:
parent
7b9c73acb7
commit
14e091c870
|
@ -31,6 +31,7 @@ import ssl
|
|||
import tempfile
|
||||
import time
|
||||
import xml.dom
|
||||
from typing import Iterator
|
||||
from urllib.parse import quote_plus
|
||||
from xml.dom import Node, minidom
|
||||
|
||||
|
@ -795,7 +796,7 @@ class _ShelfCacheBackend:
|
|||
def __contains__(self, key) -> bool:
|
||||
return key in self.cache_keys
|
||||
|
||||
def __iter__(self):
|
||||
def __iter__(self) -> Iterator:
|
||||
return iter(self.shelf.keys())
|
||||
|
||||
def get_xml(self, key):
|
||||
|
|
Loading…
Reference in a new issue