Python 3.11 removals in stdlib (#6374)

Co-authored-by: Akuli <akuviljanen17@gmail.com>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
This commit is contained in:
Alex Waygood
2021-11-25 17:34:12 +00:00
committed by GitHub
parent ab026bfecb
commit 9707cb00f6
13 changed files with 159 additions and 88 deletions

View File

@@ -1,3 +1,4 @@
import sys
from typing import IO, Any, Callable
from .types import WSGIEnvironment
@@ -7,7 +8,8 @@ class FileWrapper:
blksize: int
close: Callable[[], None] # only exists if filelike.close exists
def __init__(self, filelike: IO[bytes], blksize: int = ...) -> None: ...
def __getitem__(self, key: Any) -> bytes: ...
if sys.version_info < (3, 11):
def __getitem__(self, key: Any) -> bytes: ...
def __iter__(self) -> FileWrapper: ...
def __next__(self) -> bytes: ...