Skip to content

Commit 3a856cc

Browse files
authored
Replace variable annotation with type comment to fix Python 3.5 (#10690)
The wheel builds were broken. Our CI no longer uses Python 3.5.
1 parent 3319826 commit 3a856cc

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

mypy/checkexpr.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2777,10 +2777,8 @@ def check_boolean_op(self, e: OpExpr, context: Context) -> Type:
27772777

27782778
assert e.op in ('and', 'or') # Checked by visit_op_expr
27792779

2780-
left_map: mypy.checker.TypeMap
2781-
right_map: mypy.checker.TypeMap
27822780
if e.right_always:
2783-
left_map, right_map = None, {}
2781+
left_map, right_map = None, {} # type: mypy.checker.TypeMap, mypy.checker.TypeMap
27842782
elif e.right_unreachable:
27852783
left_map, right_map = {}, None
27862784
elif e.op == 'and':

0 commit comments

Comments
 (0)