mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-05-06 21:43:59 +08:00
Update tarfile.TarFile.list to accept any iterable for members (#14455)
This commit is contained in:
+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