Update cyclic_pep613_typevar.py

This commit is contained in:
Shunsuke Shibayama 2025-12-12 21:44:46 +09:00
parent a4585f774b
commit ec1480e117
1 changed files with 4 additions and 3 deletions

View File

@ -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