Make ZipFile.NameToInfo use Text as the key type (#2736)

This makes it match ZipInfo.filename and also actual behavior.
This commit is contained in:
Michael J. Sullivan
2019-01-10 20:32:18 -06:00
committed by GitHub
parent c75d42ef23
commit f343150a6d

View File

@@ -28,7 +28,7 @@ class ZipFile:
comment = ... # type: bytes
filelist = ... # type: List[ZipInfo]
fp = ... # type: IO[bytes]
NameToInfo = ... # type: Dict[str, ZipInfo]
NameToInfo = ... # type: Dict[Text, ZipInfo]
def __init__(self, file: Union[_Path, IO[bytes]], mode: Text = ..., compression: int = ...,
allowZip64: bool = ...) -> None: ...
def __enter__(self) -> ZipFile: ...