mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-07 20:54:28 +08:00
@@ -1,3 +1,4 @@
|
||||
import sys
|
||||
from array import array
|
||||
from typing import Any
|
||||
from typing_extensions import Literal
|
||||
@@ -41,7 +42,13 @@ class _Decompress:
|
||||
def copy(self) -> _Decompress: ...
|
||||
|
||||
def adler32(__data: bytes, __value: int = ...) -> int: ...
|
||||
def compress(__data: bytes, level: int = ...) -> bytes: ...
|
||||
|
||||
if sys.version_info >= (3, 11):
|
||||
def compress(__data: bytes, level: int = ..., wbits: int = ...) -> bytes: ...
|
||||
|
||||
else:
|
||||
def compress(__data: bytes, level: int = ...) -> bytes: ...
|
||||
|
||||
def compressobj(
|
||||
level: int = ..., method: int = ..., wbits: int = ..., memLevel: int = ..., strategy: int = ..., zdict: bytes | None = ...
|
||||
) -> _Compress: ...
|
||||
|
||||
Reference in New Issue
Block a user