Fix type for path in ZipFile.extract (#4445)

This commit is contained in:
Selim Belhaouane
2020-08-14 18:15:43 -04:00
committed by GitHub
parent fddc78293a
commit 8059ea72f8

View File

@@ -107,7 +107,7 @@ class ZipFile:
def infolist(self) -> List[ZipInfo]: ...
def namelist(self) -> List[Text]: ...
def open(self, name: _SZI, mode: Text = ..., pwd: Optional[bytes] = ..., *, force_zip64: bool = ...) -> IO[bytes]: ...
def extract(self, member: _SZI, path: Optional[_SZI] = ..., pwd: Optional[bytes] = ...) -> str: ...
def extract(self, member: _SZI, path: Optional[StrPath] = ..., pwd: Optional[bytes] = ...) -> str: ...
def extractall(
self, path: Optional[StrPath] = ..., members: Optional[Iterable[Text]] = ..., pwd: Optional[bytes] = ...
) -> None: ...