Change tarfile.extractall() to Iterable (#5273)

This commit is contained in:
Sam Bull
2021-04-30 22:40:01 +01:00
committed by GitHub
parent dfad2734aa
commit 050cfda7d9

View File

@@ -211,10 +211,10 @@ class TarFile(Iterable[TarInfo]):
def next(self) -> Optional[TarInfo]: ...
if sys.version_info >= (3, 5):
def extractall(
self, path: AnyPath = ..., members: Optional[List[TarInfo]] = ..., *, numeric_owner: bool = ...
self, path: AnyPath = ..., members: Optional[Iterable[TarInfo]] = ..., *, numeric_owner: bool = ...
) -> None: ...
else:
def extractall(self, path: AnyPath = ..., members: Optional[List[TarInfo]] = ...) -> None: ...
def extractall(self, path: AnyPath = ..., members: Optional[Iterable[TarInfo]] = ...) -> None: ...
if sys.version_info >= (3, 5):
def extract(
self, member: Union[str, TarInfo], path: AnyPath = ..., set_attrs: bool = ..., *, numeric_owner: bool = ...