-
-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Labels
Description
e.g.
type A[T: str] = T | bool
type B[T: int] = T | boolcurrently raises
NotImplementedError: conflicting typevar definitions: 'T'
instead, it should result in something like
from typing import TypeAlias, TypeVar
_T1 = TypeVar("_T1", bound=str)
_T2 = TypeVar("_T2", bound=int)
A: TypeAlias = _T1 | bool
B: TypeAlias = _T2 | boolReactions are currently unavailable