mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-09 05:24:52 +08:00
Switch to PEP-604 syntax in python2 stubs (#5915)
Signed-off-by: oleg.hoefling <oleg.hoefling@gmail.com>
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
from array import array
|
||||
from typing import Any, Union
|
||||
from typing import Any
|
||||
|
||||
DEFLATED: int
|
||||
DEF_MEM_LEVEL: int
|
||||
@@ -35,6 +35,6 @@ 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 = ...) -> _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 = ...) -> _Decompress: ...
|
||||
|
||||
Reference in New Issue
Block a user