mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-08 04:54:47 +08:00
Added some missing type annotations in stdlib stubs. (#4418)
Co-authored-by: Eric Traut <erictr@microsoft.com>
This commit is contained in:
@@ -83,9 +83,9 @@ class _GzipReader(_compression.DecompressReader):
|
||||
def read(self, size: int = ...) -> bytes: ...
|
||||
|
||||
if sys.version_info >= (3, 8):
|
||||
def compress(data, compresslevel: int = ..., *, mtime: Optional[float] = ...) -> bytes: ...
|
||||
def compress(data: bytes, compresslevel: int = ..., *, mtime: Optional[float] = ...) -> bytes: ...
|
||||
|
||||
else:
|
||||
def compress(data, compresslevel: int = ...) -> bytes: ...
|
||||
def compress(data: bytes, compresslevel: int = ...) -> bytes: ...
|
||||
|
||||
def decompress(data: bytes) -> bytes: ...
|
||||
|
||||
Reference in New Issue
Block a user