Byestring removal for 3.14 (#12490)

This commit is contained in:
Max Muoto
2024-08-06 09:16:49 -05:00
committed by GitHub
parent 3c7ffb1cc3
commit 8a7f09e351
2 changed files with 8 additions and 4 deletions

View File

@@ -846,7 +846,8 @@ class TextIO(IO[str]):
@abstractmethod
def __enter__(self) -> TextIO: ...
ByteString: typing_extensions.TypeAlias = bytes | bytearray | memoryview
if sys.version_info < (3, 14):
ByteString: typing_extensions.TypeAlias = bytes | bytearray | memoryview
# Functions