Fix various __all__-related errors and omissions (#8031)

This commit is contained in:
Alex Waygood
2022-06-07 23:29:55 +01:00
committed by GitHub
parent 591593c85f
commit e7a5b7a762
15 changed files with 108 additions and 21 deletions

View File

@@ -14,6 +14,35 @@ else:
__all__ = ["ChainMap", "Counter", "OrderedDict", "UserDict", "UserList", "UserString", "defaultdict", "deque", "namedtuple"]
if sys.version_info < (3, 7):
__all__ += [
"Awaitable",
"Coroutine",
"AsyncIterable",
"AsyncIterator",
"AsyncGenerator",
"Hashable",
"Iterable",
"Iterator",
"Generator",
"Reversible",
"Sized",
"Container",
"Callable",
"Collection",
"Set",
"MutableSet",
"Mapping",
"MutableMapping",
"MappingView",
"KeysView",
"ItemsView",
"ValuesView",
"Sequence",
"MutableSequence",
"ByteString",
]
_S = TypeVar("_S")
_T = TypeVar("_T")
_T1 = TypeVar("_T1")