mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-10-01 07:23:47 +08:00
Update tarfile.TarFile.list to accept any iterable for members (#14455)
This commit is contained in:
1 parent
6b8df6b753
commit
c97c3f0fd0
1 file changed
+1
-1
+1
-1
@@ -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.
|
||||
|
||||
Reference in new issue
Block a user