From 113eda289f54d12222e39e3f2dbfc21aab0d3c84 Mon Sep 17 00:00:00 2001 From: Opal Symes Date: Sat, 3 Nov 2018 02:29:37 +1300 Subject: [PATCH] Add context manager to tarfile.TarFile (#2579) --- stdlib/2and3/tarfile.pyi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stdlib/2and3/tarfile.pyi b/stdlib/2and3/tarfile.pyi index 618293cf8..820aa373b 100644 --- a/stdlib/2and3/tarfile.pyi +++ b/stdlib/2and3/tarfile.pyi @@ -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