zlib: update for py311 (#7315)

Co-authored-by: hauntsaninja <>
This commit is contained in:
Shantanu
2022-02-19 19:57:43 -08:00
committed by GitHub
parent 8d911a313b
commit 296920a9e9

View File

@@ -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: ...