TypeAliasType type_params accepts typing_extensions.TypeVar also (#14840)

This commit is contained in:
Carl Meyer
2025-10-06 13:57:15 -07:00
committed by GitHub
parent bbe48c754c
commit f1f3c12801
+15 -1
View File
@@ -1136,7 +1136,21 @@ if sys.version_info >= (3, 12):
def override(method: _F, /) -> _F: ...
@final
class TypeAliasType:
def __new__(cls, name: str, value: Any, *, type_params: tuple[TypeVar | ParamSpec | TypeVarTuple, ...] = ()) -> Self: ...
def __new__(
cls,
name: str,
value: Any,
*,
type_params: tuple[
TypeVar
| typing_extensions.TypeVar
| ParamSpec
| typing_extensions.ParamSpec
| TypeVarTuple
| typing_extensions.TypeVarTuple,
...,
] = (),
) -> Self: ...
@property
def __value__(self) -> Any: ... # AnnotationForm
@property