Skip to content

Commit 7aa5bd0

Browse files
authored
Add PEP 612 support to typing_extensions stub (#4814)
1 parent 3d14016 commit 7aa5bd0

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

third_party/2and3/typing_extensions.pyi

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,3 +103,12 @@ class TypeAlias: ...
103103
class SupportsIndex(Protocol, metaclass=abc.ABCMeta):
104104
@abc.abstractmethod
105105
def __index__(self) -> int: ...
106+
107+
# PEP 612 support for Python < 3.9
108+
if sys.version_info >= (3, 10):
109+
from typing import Concatenate as Concatenate, ParamSpec as ParamSpec
110+
else:
111+
class ParamSpec:
112+
__name__: str
113+
def __init__(self, name: str) -> None: ...
114+
Concatenate: _SpecialForm = ...

0 commit comments

Comments
 (0)