Use variable annotations everywhere (#2909)

This commit is contained in:
Michael Lee
2019-04-13 01:40:52 -07:00
committed by Sebastian Rittau
parent b3c76aab49
commit efb67946f8
458 changed files with 9135 additions and 9135 deletions

View File

@@ -15,27 +15,27 @@ elif sys.version_info >= (3,):
else:
_Path = Union[str, unicode]
ENCODING = ... # type: str
ENCODING: str
USTAR_FORMAT = ... # type: int
GNU_FORMAT = ... # type: int
PAX_FORMAT = ... # type: int
DEFAULT_FORMAT = ... # type: int
USTAR_FORMAT: int
GNU_FORMAT: int
PAX_FORMAT: int
DEFAULT_FORMAT: int
REGTYPE = ... # type: bytes
AREGTYPE = ... # type: bytes
LNKTYPE = ... # type: bytes
SYMTYPE = ... # type: bytes
DIRTYPE = ... # type: bytes
FIFOTYPE = ... # type: bytes
CONTTYPE = ... # type: bytes
CHRTYPE = ... # type: bytes
BLKTYPE = ... # type: bytes
GNUTYPE_SPARSE = ... # type: bytes
REGTYPE: bytes
AREGTYPE: bytes
LNKTYPE: bytes
SYMTYPE: bytes
DIRTYPE: bytes
FIFOTYPE: bytes
CONTTYPE: bytes
CHRTYPE: bytes
BLKTYPE: bytes
GNUTYPE_SPARSE: bytes
if sys.version_info < (3,):
TAR_PLAIN = ... # type: int
TAR_GZIPPED = ... # type: int
TAR_PLAIN: int
TAR_GZIPPED: int
def open(name: Optional[_Path] = ..., mode: str = ...,
fileobj: Optional[IO[bytes]] = ..., bufsize: int = ...,
@@ -49,20 +49,20 @@ def open(name: Optional[_Path] = ..., mode: str = ...,
compresslevel: Optional[int] = ...) -> TarFile: ...
class TarFile(Iterable[TarInfo]):
name = ... # type: Optional[_Path]
mode = ... # type: str
fileobj = ... # type: Optional[IO[bytes]]
format = ... # type: Optional[int]
tarinfo = ... # type: Optional[TarInfo]
dereference = ... # type: Optional[bool]
ignore_zeros = ... # type: Optional[bool]
encoding = ... # type: Optional[str]
errors = ... # type: str
pax_headers = ... # type: Optional[Mapping[str, str]]
debug = ... # type: Optional[int]
errorlevel = ... # type: Optional[int]
name: Optional[_Path]
mode: str
fileobj: Optional[IO[bytes]]
format: Optional[int]
tarinfo: Optional[TarInfo]
dereference: Optional[bool]
ignore_zeros: Optional[bool]
encoding: Optional[str]
errors: str
pax_headers: Optional[Mapping[str, str]]
debug: Optional[int]
errorlevel: Optional[int]
if sys.version_info < (3,):
posix = ... # type: bool
posix: bool
def __init__(self, name: Optional[_Path] = ..., mode: str = ...,
fileobj: Optional[IO[bytes]] = ...,
format: Optional[int] = ..., tarinfo: Optional[TarInfo] = ...,
@@ -156,17 +156,17 @@ class ExtractError(TarError): ...
class HeaderError(TarError): ...
class TarInfo:
name = ... # type: str
size = ... # type: int
mtime = ... # type: int
mode = ... # type: int
type = ... # type: bytes
linkname = ... # type: str
uid = ... # type: int
gid = ... # type: int
uname = ... # type: str
gname = ... # type: str
pax_headers = ... # type: Mapping[str, str]
name: str
size: int
mtime: int
mode: int
type: bytes
linkname: str
uid: int
gid: int
uname: str
gname: str
pax_headers: Mapping[str, str]
def __init__(self, name: str = ...) -> None: ...
if sys.version_info >= (3,):
@classmethod