mirror of https://github.com/astral-sh/ruff
Update cyclic_pep613_typevar.py
This commit is contained in:
parent
a4585f774b
commit
ec1480e117
|
|
@ -1,6 +1,7 @@
|
||||||
from typing import TypeAlias
|
from typing import TypeAlias, TypeVar
|
||||||
|
|
||||||
T: TypeAlias = "T[0]"
|
T = TypeVar("T", bound="A[0]")
|
||||||
def _(x: T):
|
A: TypeAlias = T
|
||||||
|
def _(x: A):
|
||||||
if x:
|
if x:
|
||||||
pass
|
pass
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue