mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-02-20 16:48:27 +08:00
apply black and isort (#4287)
* apply black and isort * move some type ignores
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
# Stubs for zlib
|
||||
import sys
|
||||
from array import array
|
||||
from typing import Union, Any
|
||||
from typing import Any, Union
|
||||
|
||||
DEFLATED: int
|
||||
DEF_MEM_LEVEL: int
|
||||
@@ -23,13 +23,11 @@ if sys.version_info >= (3,):
|
||||
|
||||
class error(Exception): ...
|
||||
|
||||
|
||||
class _Compress:
|
||||
def compress(self, data: bytes) -> bytes: ...
|
||||
def flush(self, mode: int = ...) -> bytes: ...
|
||||
def copy(self) -> _Compress: ...
|
||||
|
||||
|
||||
class _Decompress:
|
||||
unused_data: bytes
|
||||
unconsumed_tail: bytes
|
||||
@@ -39,19 +37,24 @@ class _Decompress:
|
||||
def flush(self, length: int = ...) -> bytes: ...
|
||||
def copy(self) -> _Decompress: ...
|
||||
|
||||
|
||||
def adler32(__data: bytes, __value: int = ...) -> int: ...
|
||||
def compress(__data: bytes, level: int = ...) -> bytes: ...
|
||||
|
||||
if sys.version_info >= (3,):
|
||||
def compressobj(level: int = ..., method: int = ..., wbits: int = ...,
|
||||
memLevel: int = ..., strategy: int = ...,
|
||||
zdict: bytes = ...) -> _Compress: ...
|
||||
def compressobj(
|
||||
level: int = ..., method: int = ..., wbits: int = ..., memLevel: int = ..., strategy: int = ..., zdict: bytes = ...
|
||||
) -> _Compress: ...
|
||||
|
||||
else:
|
||||
def compressobj(level: int = ..., method: int = ..., wbits: int = ...,
|
||||
memlevel: int = ..., strategy: int = ...) -> _Compress: ...
|
||||
def compressobj(
|
||||
level: int = ..., method: int = ..., wbits: int = ..., memlevel: int = ..., strategy: int = ...
|
||||
) -> _Compress: ...
|
||||
|
||||
def crc32(__data: Union[array[Any], bytes], __value: int = ...) -> int: ...
|
||||
def decompress(__data: bytes, wbits: int = ..., bufsize: int = ...) -> bytes: ...
|
||||
|
||||
if sys.version_info >= (3,):
|
||||
def decompressobj(wbits: int = ..., zdict: bytes = ...) -> _Decompress: ...
|
||||
|
||||
else:
|
||||
def decompressobj(wbits: int = ...) -> _Decompress: ...
|
||||
|
||||
Reference in New Issue
Block a user