From ec1480e117948a605ada0a8690b842b9a8337870 Mon Sep 17 00:00:00 2001 From: Shunsuke Shibayama Date: Fri, 12 Dec 2025 21:44:46 +0900 Subject: [PATCH] Update cyclic_pep613_typevar.py --- .../resources/corpus/cyclic_pep613_typevar.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) 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