mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-08 04:54:47 +08:00
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:
committed by
GitHub
parent
c75d42ef23
commit
f343150a6d
@@ -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: ...
|
||||
|
||||
Reference in New Issue
Block a user