mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-16 00:37:10 +08:00
Add __all__ for modules beginning with 'u', 'x', 'w' and 'z' (#7374)
This commit is contained in:
@@ -6,6 +6,38 @@ from types import TracebackType
|
||||
from typing import IO, Any, Callable, Iterable, Iterator, Protocol, Sequence, overload
|
||||
from typing_extensions import Literal
|
||||
|
||||
if sys.version_info >= (3, 8):
|
||||
__all__ = [
|
||||
"BadZipFile",
|
||||
"BadZipfile",
|
||||
"error",
|
||||
"ZIP_STORED",
|
||||
"ZIP_DEFLATED",
|
||||
"ZIP_BZIP2",
|
||||
"ZIP_LZMA",
|
||||
"is_zipfile",
|
||||
"ZipInfo",
|
||||
"ZipFile",
|
||||
"PyZipFile",
|
||||
"LargeZipFile",
|
||||
"Path",
|
||||
]
|
||||
else:
|
||||
__all__ = [
|
||||
"BadZipFile",
|
||||
"BadZipfile",
|
||||
"error",
|
||||
"ZIP_STORED",
|
||||
"ZIP_DEFLATED",
|
||||
"ZIP_BZIP2",
|
||||
"ZIP_LZMA",
|
||||
"is_zipfile",
|
||||
"ZipInfo",
|
||||
"ZipFile",
|
||||
"PyZipFile",
|
||||
"LargeZipFile",
|
||||
]
|
||||
|
||||
_DateTuple = tuple[int, int, int, int, int, int]
|
||||
_ReadWriteMode = Literal["r", "w"]
|
||||
_ReadWriteBinaryMode = Literal["r", "w", "rb", "wb"]
|
||||
|
||||
Reference in New Issue
Block a user