mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-07 12:44:28 +08:00
Add compresslevel kwarg to tarfile (#1169)
https://docs.python.org/2/library/tarfile.html?highlight=compresslevel
This commit is contained in:
committed by
Matthias Kramm
parent
194c4c6eb0
commit
243b67f0d2
@@ -38,7 +38,8 @@ def open(name: Optional[str] = ..., mode: str = ...,
|
||||
encoding: Optional[str] = ..., errors: str = ...,
|
||||
pax_headers: Optional[Mapping[str, str]] = ...,
|
||||
debug: Optional[int] = ...,
|
||||
errorlevel: Optional[int] = ...) -> TarFile: ...
|
||||
errorlevel: Optional[int] = ...,
|
||||
compresslevel: Optional[int] = ...) -> TarFile: ...
|
||||
|
||||
|
||||
class TarFile(Iterable[TarInfo]):
|
||||
@@ -64,7 +65,8 @@ class TarFile(Iterable[TarInfo]):
|
||||
encoding: Optional[str] = ..., errors: str = ...,
|
||||
pax_headers: Optional[Mapping[str, str]] = ...,
|
||||
debug: Optional[int] = ...,
|
||||
errorlevel: Optional[int] = ...) -> None: ...
|
||||
errorlevel: Optional[int] = ...,
|
||||
compresslevel: Optional[int] = ...) -> None: ...
|
||||
def __enter__(self) -> TarFile: ...
|
||||
def __exit__(self,
|
||||
exc_type: Optional[Type[BaseException]],
|
||||
|
||||
Reference in New Issue
Block a user