Fix errors when type checking stdlib with Python 3.14 (#13977)

This commit is contained in:
Sebastian Rittau authored and GitHub committed 2025-05-09 21:04:35 +02:00
1 parent 168af67fb8
commit 2d46095e3f
4 files changed
+27 -18

No files matched your search

+3 -1
View File
@@ -37,7 +37,6 @@ __all__ = [
"AsyncIterator",
"Awaitable",
"BinaryIO",
"ByteString",
"Callable",
"ChainMap",
"ClassVar",
@@ -106,6 +105,9 @@ __all__ = [
"runtime_checkable",
]
if sys.version_info < (3, 14):
__all__ += ["ByteString"]
if sys.version_info >= (3, 10):
__all__ += ["Concatenate", "ParamSpec", "ParamSpecArgs", "ParamSpecKwargs", "TypeAlias", "TypeGuard", "is_typeddict"]