-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Closed
Labels
acceptedReady for implementationReady for implementationhelp wantedContributions especially welcomeContributions especially welcomepython312Related to Python 3.12Related to Python 3.12ruleImplementing or modifying a lint ruleImplementing or modifying a lint rule
Description
input:
from typing import TypeVar, TypeAlias, Generic
T = TypeVar("T", bound=float)
Foo: TypeAlias = str | T | None
class A(Generic[T]):
...
def f(t: T):
...
output:
type Foo[T: float] = str | T | None
class A[T: float]:
...
def f[T: float](t: T):
...
And also ParamSpec
and TypeVarTuple
.
DetachHead, T-256, JonathanPlasse, charliermarsh, SigureMo and 14 more
Metadata
Metadata
Assignees
Labels
acceptedReady for implementationReady for implementationhelp wantedContributions especially welcomeContributions especially welcomepython312Related to Python 3.12Related to Python 3.12ruleImplementing or modifying a lint ruleImplementing or modifying a lint rule