From 3c0f2acdf01a079b491ee30743a3c6a2a51f4b2f Mon Sep 17 00:00:00 2001 From: Vyom Pathak Date: Sat, 27 Feb 2021 16:02:31 +0530 Subject: [PATCH] Changed: Name argument type to support None value (#5075) Closes: #5027 --- stdlib/tarfile.pyi | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/stdlib/tarfile.pyi b/stdlib/tarfile.pyi index 0244359f3..b1e72a752 100644 --- a/stdlib/tarfile.pyi +++ b/stdlib/tarfile.pyi @@ -135,7 +135,7 @@ class TarFile(Iterable[TarInfo]): @classmethod def taropen( cls, - name: AnyPath, + name: Optional[AnyPath], mode: str = ..., fileobj: Optional[IO[bytes]] = ..., *, @@ -152,7 +152,7 @@ class TarFile(Iterable[TarInfo]): @classmethod def gzopen( cls, - name: AnyPath, + name: Optional[AnyPath], mode: str = ..., fileobj: Optional[IO[bytes]] = ..., compresslevel: int = ..., @@ -169,7 +169,7 @@ class TarFile(Iterable[TarInfo]): @classmethod def bz2open( cls, - name: AnyPath, + name: Optional[AnyPath], mode: str = ..., fileobj: Optional[IO[bytes]] = ..., compresslevel: int = ..., @@ -186,7 +186,7 @@ class TarFile(Iterable[TarInfo]): @classmethod def xzopen( cls, - name: AnyPath, + name: Optional[AnyPath], mode: str = ..., fileobj: Optional[IO[bytes]] = ..., preset: Optional[int] = ...,