mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-07 12:44:28 +08:00
Mypy now supports sys.platform and sys.version_info checks (#410)
This commit is contained in:
@@ -46,7 +46,7 @@ class ZipFile:
|
||||
def writestr(self, zinfo_or_arcname: _SZI, data: Union[bytes, str],
|
||||
compress_type: Optional[int] = ...) -> None: ...
|
||||
else:
|
||||
def writestr(self, # type: ignore
|
||||
def writestr(self,
|
||||
zinfo_or_arcname: _SZI, bytes: bytes,
|
||||
compress_type: Optional[int] = ...) -> None: ...
|
||||
|
||||
@@ -58,7 +58,7 @@ class PyZipFile(ZipFile):
|
||||
def writepy(self, pathname: str, basename: str = ...,
|
||||
filterfunc: Optional[Callable[[str], bool]] = ...) -> None: ...
|
||||
else:
|
||||
def writepy(self, # type: ignore
|
||||
def writepy(self,
|
||||
pathname: str, basename: str = ...) -> None: ...
|
||||
|
||||
class ZipInfo:
|
||||
|
||||
Reference in New Issue
Block a user