mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-08 13:04:46 +08:00
Add ZipInfo type hint to members argument of ZipFile.extractall (#5936)
This commit is contained in:
committed by
GitHub
parent
7144118995
commit
918c7d0b84
@@ -140,7 +140,9 @@ class ZipFile:
|
||||
self, name: str | ZipInfo, mode: Literal["r", "w"] = ..., pwd: bytes | None = ..., *, force_zip64: bool = ...
|
||||
) -> IO[bytes]: ...
|
||||
def extract(self, member: str | ZipInfo, path: StrPath | None = ..., pwd: bytes | None = ...) -> str: ...
|
||||
def extractall(self, path: StrPath | None = ..., members: Iterable[str] | None = ..., pwd: bytes | None = ...) -> None: ...
|
||||
def extractall(
|
||||
self, path: StrPath | None = ..., members: Iterable[str | ZipInfo] | None = ..., pwd: bytes | None = ...
|
||||
) -> None: ...
|
||||
def printdir(self, file: _Writer | None = ...) -> None: ...
|
||||
def setpassword(self, pwd: bytes) -> None: ...
|
||||
def read(self, name: str | ZipInfo, pwd: bytes | None = ...) -> bytes: ...
|
||||
|
||||
Reference in New Issue
Block a user