Add context manager to tarfile.TarFile (#2579)

This commit is contained in:
Opal Symes
2018-11-03 02:29:37 +13:00
committed by Sebastian Rittau
parent 292cbf1a35
commit 113eda289f

View File

@@ -78,7 +78,7 @@ class TarFile(Iterable[TarInfo]):
def __enter__(self) -> TarFile: ...
def __exit__(self,
exc_type: Optional[Type[BaseException]],
exc_val: Optional[Exception],
exc_val: Optional[BaseException],
exc_tb: Optional[TracebackType]) -> bool: ...
def __iter__(self) -> Iterator[TarInfo]: ...
@classmethod