mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-10 05:51:52 +08:00
Add context manager to tarfile.TarFile (#2579)
This commit is contained in:
committed by
Sebastian Rittau
parent
292cbf1a35
commit
113eda289f
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user