Update tarfile.TarFile.list to accept any iterable for members (#14455)

This commit is contained in:
Brian Schubert
2025-07-25 23:25:40 -04:00
committed by GitHub
parent 6b8df6b753
commit c97c3f0fd0
+1 -1
View File
@@ -646,7 +646,7 @@ class TarFile:
def getmember(self, name: str) -> TarInfo: ...
def getmembers(self) -> _list[TarInfo]: ...
def getnames(self) -> _list[str]: ...
def list(self, verbose: bool = True, *, members: _list[TarInfo] | None = None) -> None: ...
def list(self, verbose: bool = True, *, members: Iterable[TarInfo] | None = None) -> None: ...
def next(self) -> TarInfo | None: ...
# Calling this method without `filter` is deprecated, but it may be set either on the class or in an
# individual call, so we can't mark it as @deprecated here.