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]"
|
||||
def _(x: T):
|
||||
T = TypeVar("T", bound="A[0]")
|
||||
A: TypeAlias = T
|
||||
def _(x: A):
|
||||
if x:
|
||||
pass
|
||||
|
|
|
|||
Loading…
Reference in New Issue