mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-09 21:46:42 +08:00
Remove Python 3.7 branches (#11238)
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user