Add ZipInfo type hint to members argument of ZipFile.extractall (#5936)

This commit is contained in:
Niklas Gustafsson
2021-08-20 10:43:45 +02:00
committed by GitHub
parent 7144118995
commit 918c7d0b84

View File

@@ -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: ...