Skip to content

Commit c982e82

Browse files
committed
change variable usage
1 parent b093a80 commit c982e82

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

src/test_typing_extensions.py

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8477,7 +8477,6 @@ def test_evaluate_forward_refs(self):
84778477

84788478
# This variable must have a different name TypeVar
84798479
T_local = TypeVar("T_nonlocal")
8480-
T_local_type_params = (T_local,)
84818480

84828481
class X:
84838482
T_in_Y = object() # Using X as owner should not access this value
@@ -8488,7 +8487,6 @@ class Y(Generic[T_in_Y]):
84888487
bT = "Y[T_nonlocal]"
84898488
# Object with __type_params__
84908489
Z = TypeAliasType("Z", Y[T_in_Y], type_params=(T_in_Y,))
8491-
Y_type_params = (T_in_Y,)
84928490
del T_in_Y
84938491

84948492
# Assure that class names are not in globals
@@ -8666,7 +8664,7 @@ def unroll_cases(cases):
86668664
Format.STRING: "Y[T_nonlocal]",
86678665
},
86688666
{
8669-
"type_params": T_local_type_params,
8667+
"type_params": (T_local, ),
86708668
Format.VALUE: Y[T_local],
86718669
Format.FORWARDREF: Y[T_local],
86728670
Format.STRING: "Y[T_nonlocal]",
@@ -8694,7 +8692,7 @@ def unroll_cases(cases):
86948692
],
86958693
"Y[Y[T_nonlocal]]": [
86968694
{
8697-
"type_params": T_local_type_params,
8695+
"type_params": (T_local, ),
86988696
Format.VALUE: Y[Y[T_local]],
86998697
Format.FORWARDREF: Y[Y[T_local]],
87008698
Format.STRING: "Y[Y[T_nonlocal]]",
@@ -8740,7 +8738,7 @@ def unroll_cases(cases):
87408738
# Note: Different to the <3.14 ForwardRef behavior STRING yields "Y.bT"
87418739
# and not "Y[T_nonlocal]"
87428740
{
8743-
"type_params": T_local_type_params,
8741+
"type_params": (T_local, ),
87448742
Format.VALUE: Y[T_local],
87458743
Format.FORWARDREF: Y[T_local],
87468744
Format.STRING: "Y.bT",

0 commit comments

Comments
 (0)