mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-16 00:37:10 +08:00
Add is_dir method to ZipInfo class (#2554)
This commit is contained in:
committed by
Sebastian Rittau
parent
006a79220f
commit
b33738e042
@@ -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: ...
|
||||
|
||||
Reference in New Issue
Block a user