File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -1639,14 +1639,15 @@ def analyze_class(self, defn: ClassDef) -> None:
1639
1639
1640
1640
for tvd in tvar_defs :
1641
1641
if isinstance (tvd , TypeVarType ) and any (
1642
- has_placeholder (t ) for t in [tvd .upper_bound , tvd . default ] + tvd .values
1642
+ has_placeholder (t ) for t in [tvd .upper_bound ] + tvd .values
1643
1643
):
1644
1644
# Some type variable bounds or values are not ready, we need
1645
1645
# to re-analyze this class.
1646
1646
self .defer ()
1647
- if has_placeholder (tvd .default ):
1647
+ if isinstance ( tvd , TypeVarLikeType ) and has_placeholder (tvd .default ):
1648
1648
# Placeholder values in TypeVarLikeTypes may get substituted in.
1649
1649
# Defer current target until they are ready.
1650
+ self .defer ()
1650
1651
self .mark_incomplete (defn .name , defn )
1651
1652
return
1652
1653
You can’t perform that action at this time.
0 commit comments