From 918c7d0b848ae214b4c65a7491777f23ff8e540d Mon Sep 17 00:00:00 2001 From: Niklas Gustafsson Date: Fri, 20 Aug 2021 10:43:45 +0200 Subject: [PATCH] Add ZipInfo type hint to members argument of ZipFile.extractall (#5936) --- stdlib/zipfile.pyi | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/stdlib/zipfile.pyi b/stdlib/zipfile.pyi index 11e7f08b1..f2dbb269f 100644 --- a/stdlib/zipfile.pyi +++ b/stdlib/zipfile.pyi @@ -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: ...