Add __all__ for most modules beginning with 't' (#7373)

This commit is contained in:
Alex Waygood authored and GitHub committed 2022-02-23 18:25:28 -08:00
1 parent 062fc75d73
commit 6a743348ca
22 files changed
+1192

No files matched your search

+18
View File
@@ -9,6 +9,24 @@ from types import TracebackType
from typing import IO, Protocol, overload
from typing_extensions import Literal
__all__ = [
"TarFile",
"TarInfo",
"is_tarfile",
"TarError",
"ReadError",
"CompressionError",
"StreamError",
"ExtractError",
"HeaderError",
"ENCODING",
"USTAR_FORMAT",
"GNU_FORMAT",
"PAX_FORMAT",
"DEFAULT_FORMAT",
"open",
]
class _Fileobj(Protocol):
def read(self, __size: int) -> bytes: ...
def write(self, __b: bytes) -> object: ...