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

This commit is contained in:
Alex Waygood
2022-02-24 02:25:28 +00:00
committed by GitHub
parent 062fc75d73
commit 6a743348ca
22 changed files with 1192 additions and 0 deletions

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: ...