mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-05-06 21:43:59 +08:00
[concurrent.interpreters] Fix version guards (#15592)
This commit is contained in:
@@ -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): ...
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user