mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-01-22 02:52:07 +08:00
Big diff: Use new "|" union syntax (#5872)
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
from array import array
|
||||
from typing import Any, Optional, Union
|
||||
from typing import Any
|
||||
|
||||
DEFLATED: int
|
||||
DEF_MEM_LEVEL: int
|
||||
@@ -38,8 +38,8 @@ class _Decompress:
|
||||
def adler32(__data: bytes, __value: int = ...) -> int: ...
|
||||
def compress(__data: bytes, level: int = ...) -> bytes: ...
|
||||
def compressobj(
|
||||
level: int = ..., method: int = ..., wbits: int = ..., memLevel: int = ..., strategy: int = ..., zdict: Optional[bytes] = ...
|
||||
level: int = ..., method: int = ..., wbits: int = ..., memLevel: int = ..., strategy: int = ..., zdict: bytes | None = ...
|
||||
) -> _Compress: ...
|
||||
def crc32(__data: Union[array[Any], bytes], __value: int = ...) -> int: ...
|
||||
def crc32(__data: array[Any] | bytes, __value: int = ...) -> int: ...
|
||||
def decompress(__data: bytes, wbits: int = ..., bufsize: int = ...) -> bytes: ...
|
||||
def decompressobj(wbits: int = ..., zdict: bytes = ...) -> _Decompress: ...
|
||||
|
||||
Reference in New Issue
Block a user