Add __all__ for modules beginning with 'e', 'f' and 'g' (#7325)

This commit is contained in:
Alex Waygood
2022-02-20 23:08:14 +00:00
committed by GitHub
parent 3ead05f277
commit 2fe519c3a7
13 changed files with 192 additions and 1 deletions

View File

@@ -2,6 +2,21 @@ import sys
from _typeshed import Self, StrOrBytesPath
from typing import IO, Any, AnyStr, Callable, Generic, Iterable, Iterator
__all__ = [
"input",
"close",
"nextfile",
"filename",
"lineno",
"filelineno",
"fileno",
"isfirstline",
"isstdin",
"FileInput",
"hook_compressed",
"hook_encoded",
]
if sys.version_info >= (3, 9):
from types import GenericAlias