Add is_dir method to ZipInfo class (#2554)

This commit is contained in:
PRAJWAL M
2018-10-25 21:25:39 +05:30
committed by Sebastian Rittau
parent 006a79220f
commit b33738e042

View File

@@ -57,8 +57,6 @@ class ZipFile:
def writestr(self,
zinfo_or_arcname: _SZI, bytes: bytes,
compress_type: Optional[int] = ...) -> None: ...
if sys.version_info >= (3, 6):
def is_dir(self) -> bool: ...
class PyZipFile(ZipFile):
if sys.version_info >= (3,):
@@ -89,6 +87,8 @@ class ZipInfo:
CRC = ... # type: int
compress_size = ... # type: int
file_size = ... # type: int
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: ...