zipfile.ZipInfo.__init__ is the same on 2/3 (#2628)

This commit is contained in:
Maxim Kurnikov
2018-11-24 05:46:57 +03:00
committed by Jelle Zijlstra
parent 517d2b6012
commit 172b384e23

View File

@@ -87,11 +87,10 @@ class ZipInfo:
CRC = ... # type: int
compress_size = ... # type: int
file_size = ... # type: int
def __init__(self, filename: Optional[Text] = ...,
date_time: Optional[_DT] = ...) -> None: ...
if sys.version_info >= (3, 6):
def is_dir(self) -> bool: ...
if sys.version_info < (3,):
def __init__(self, filename: Optional[Text] = ...,
date_time: Optional[_DT] = ...) -> None: ...
def is_zipfile(filename: Union[_Path, IO[bytes]]) -> bool: ...