Skip to content

Commit c97c3f0

Browse files
Update tarfile.TarFile.list to accept any iterable for members (#14455)
1 parent 6b8df6b commit c97c3f0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

stdlib/tarfile.pyi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -646,7 +646,7 @@ class TarFile:
646646
def getmember(self, name: str) -> TarInfo: ...
647647
def getmembers(self) -> _list[TarInfo]: ...
648648
def getnames(self) -> _list[str]: ...
649-
def list(self, verbose: bool = True, *, members: _list[TarInfo] | None = None) -> None: ...
649+
def list(self, verbose: bool = True, *, members: Iterable[TarInfo] | None = None) -> None: ...
650650
def next(self) -> TarInfo | None: ...
651651
# Calling this method without `filter` is deprecated, but it may be set either on the class or in an
652652
# individual call, so we can't mark it as @deprecated here.

0 commit comments

Comments
 (0)