Skip to content

Commit 55ad10d

Browse files
author
Johan Dahlin
committed
Use type comment for Python 3.5 compatibility
1 parent 24b5af1 commit 55ad10d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mypyc/irbuild/expression.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -372,7 +372,7 @@ def transform_comparison_expr(builder: IRBuilder, e: ComparisonExpr) -> Value:
372372
bin_op = 'or' if e.operators[0] == 'in' else 'and'
373373
lhs = e.operands[0]
374374
exprs = (ComparisonExpr([cmp_op], [lhs, item]) for item in items)
375-
or_expr: Expression = next(exprs)
375+
or_expr = next(exprs) # type: Expression
376376
for expr in exprs:
377377
or_expr = OpExpr(bin_op, or_expr, expr)
378378
return builder.accept(or_expr)

0 commit comments

Comments
 (0)