mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-10 05:51:52 +08:00
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:
@@ -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: ...
|
||||
|
||||
|
||||
Reference in New Issue
Block a user