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

@@ -15,11 +15,19 @@ __all__ = [
"AbstractSet",
"Any",
"AnyStr",
"AsyncContextManager",
"AsyncGenerator",
"AsyncIterable",
"AsyncIterator",
"Awaitable",
"ByteString",
"Callable",
"ChainMap",
"ClassVar",
"Collection",
"Container",
"ContextManager",
"Coroutine",
"Counter",
"DefaultDict",
"Deque",
@@ -69,19 +77,7 @@ if sys.version_info < (3, 7):
__all__ += ["GenericMeta"]
if sys.version_info >= (3, 7):
__all__ += [
"AsyncContextManager",
"AsyncGenerator",
"AsyncIterable",
"AsyncIterator",
"Awaitable",
"ChainMap",
"Collection",
"Coroutine",
"ForwardRef",
"NoReturn",
"OrderedDict",
]
__all__ += ["ForwardRef", "NoReturn", "OrderedDict"]
if sys.version_info >= (3, 8):
__all__ += [