mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-02-15 14:31:59 +08:00
Add __all__ for most modules beginning with 't' (#7373)
This commit is contained in:
@@ -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: ...
|
||||
|
||||
Reference in New Issue
Block a user