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

@@ -6,6 +6,11 @@ from io import FileIO
from typing import Any, Protocol, TextIO, overload
from typing_extensions import Literal
if sys.version_info >= (3, 8):
__all__ = ["BadGzipFile", "GzipFile", "open", "compress", "decompress"]
else:
__all__ = ["GzipFile", "open", "compress", "decompress"]
_ReadBinaryMode = Literal["r", "rb"]
_WriteBinaryMode = Literal["a", "ab", "w", "wb", "x", "xb"]
_OpenTextMode = Literal["rt", "at", "wt", "xt"]