Revert "Byestring removal for 3.14 (#12490)" (#14743)

This commit is contained in:
Alex Waygood
2025-09-19 08:09:22 +01:00
committed by GitHub
parent 00790cb021
commit cc0ce1e500
8 changed files with 12 additions and 47 deletions
+2 -5
View File
@@ -41,6 +41,7 @@ __all__ = [
"AsyncIterator",
"Awaitable",
"BinaryIO",
"ByteString",
"Callable",
"ChainMap",
"ClassVar",
@@ -109,9 +110,6 @@ __all__ = [
"runtime_checkable",
]
if sys.version_info < (3, 14):
__all__ += ["ByteString"]
if sys.version_info >= (3, 14):
__all__ += ["evaluate_forward_ref"]
@@ -923,8 +921,7 @@ class TextIO(IO[str]):
@abstractmethod
def __enter__(self) -> TextIO: ...
if sys.version_info < (3, 14):
ByteString: typing_extensions.TypeAlias = bytes | bytearray | memoryview
ByteString: typing_extensions.TypeAlias = bytes | bytearray | memoryview
# Functions