mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-09 21:46:42 +08:00
Consistently use '= ...' for optional parameters.
This commit is contained in:
@@ -14,16 +14,16 @@ class ZipInfo:
|
||||
file_size = 0
|
||||
|
||||
class ZipFile:
|
||||
def __init__(self, file: Union[str, BinaryIO], mode: str = 'r',
|
||||
compression: int = ZIP_STORED,
|
||||
allowZip64: bool = False) -> None: ...
|
||||
def __init__(self, file: Union[str, BinaryIO], mode: str = ...,
|
||||
compression: int = ...,
|
||||
allowZip64: bool = ...) -> None: ...
|
||||
def close(self) -> None: ...
|
||||
def getinfo(name: str) -> ZipInfo: ...
|
||||
def infolist(self) -> List[ZipInfo]: ...
|
||||
def namelist(self) -> List[str]: ...
|
||||
def read(self, name: Union[str, ZipInfo], pwd: str = None) -> bytes: ...
|
||||
def write(self, filename: str, arcname: str = None,
|
||||
compress_type: int = None) -> None: ...
|
||||
def read(self, name: Union[str, ZipInfo], pwd: str = ...) -> bytes: ...
|
||||
def write(self, filename: str, arcname: str = ...,
|
||||
compress_type: int = ...) -> None: ...
|
||||
|
||||
def __enter__(self) -> 'ZipFile': ...
|
||||
def __exit__(self, type, value, traceback) -> bool: ...
|
||||
|
||||
Reference in New Issue
Block a user