diff --git a/crates/ty_python_semantic/resources/corpus/cyclic_pep613_typevar.py b/crates/ty_python_semantic/resources/corpus/cyclic_pep613_typevar.py index 35a33fed83..5730c9f30b 100644 --- a/crates/ty_python_semantic/resources/corpus/cyclic_pep613_typevar.py +++ b/crates/ty_python_semantic/resources/corpus/cyclic_pep613_typevar.py @@ -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