Skip to content

Commit 2b33511

Browse files
author
Guido van Rossum
committed
Fix crash due to not fixing TypeVarExpr.upper_bound. Fixes #1482.
1 parent bb1c5df commit 2b33511

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

mypy/fixup.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,7 @@ def visit_class_def(self, c: ClassDef) -> None:
120120
def visit_type_var_expr(self, tv: TypeVarExpr) -> None:
121121
for value in tv.values:
122122
value.accept(self.type_fixer)
123+
tv.upper_bound.accept(self.type_fixer)
123124

124125
def visit_var(self, v: Var) -> None:
125126
if self.current_info is not None:

0 commit comments

Comments
 (0)