[concurrent.interpreters] Fix version guards (#15592)

This commit is contained in:
Sebastian Rittau
2026-04-01 15:41:03 +02:00
committed by GitHub
parent 1004155b8e
commit b4a8d21edf
3 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -5,7 +5,7 @@ from collections.abc import Callable
from typing import Any, Literal, TypeVar
from typing_extensions import ParamSpec, Self
if sys.version_info >= (3, 13): # needed to satisfy pyright checks for Python <3.13
if sys.version_info >= (3, 14): # needed to satisfy pyright checks for Python <= 3.13
from _interpreters import (
InterpreterError as InterpreterError,
InterpreterNotFoundError as InterpreterNotFoundError,
@@ -3,7 +3,7 @@ from collections.abc import Callable
from typing import Final, NewType
from typing_extensions import Never, Self, TypeAlias
if sys.version_info >= (3, 13): # needed to satisfy pyright checks for Python <3.13
if sys.version_info >= (3, 14): # needed to satisfy pyright checks for Python <= 3.13
from _interpqueues import _UnboundOp
class ItemInterpreterDestroyed(Exception): ...
+1 -1
View File
@@ -3,7 +3,7 @@ import sys
from typing import Final, SupportsIndex
from typing_extensions import Self
if sys.version_info >= (3, 13): # needed to satisfy pyright checks for Python <3.13
if sys.version_info >= (3, 14): # needed to satisfy pyright checks for Python <= 3.13
from _interpqueues import QueueError as QueueError, QueueNotFoundError as QueueNotFoundError
from . import _crossinterp