Remove Python 3.7 branches (#11238)

This commit is contained in:
Sebastian Rittau
2024-01-05 11:39:39 +01:00
committed by GitHub
parent 4e62577002
commit 23604858a6
122 changed files with 1952 additions and 3800 deletions

View File

@@ -12,6 +12,7 @@ from typing_extensions import Literal, Self
__all__ = [
"BlockingIOError",
"open",
"open_code",
"IOBase",
"RawIOBase",
"FileIO",
@@ -30,9 +31,6 @@ __all__ = [
"SEEK_END",
]
if sys.version_info >= (3, 8):
__all__ += ["open_code"]
if sys.version_info >= (3, 11):
__all__ += ["DEFAULT_BUFFER_SIZE", "IncrementalNewlineDecoder", "text_encoding"]
@@ -46,8 +44,7 @@ SEEK_END: Literal[2]
open = builtins.open
if sys.version_info >= (3, 8):
def open_code(path: str) -> IO[bytes]: ...
def open_code(path: str) -> IO[bytes]: ...
BlockingIOError = builtins.BlockingIOError