Skip to content

Commit 0932261

Browse files
authored
Remove dead code (#8168)
The `in` operator is handled by `visit_comparison_expr`.
1 parent c1cd529 commit 0932261

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

mypy/checkexpr.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2070,10 +2070,6 @@ def visit_ellipsis(self, e: EllipsisExpr) -> Type:
20702070

20712071
def visit_op_expr(self, e: OpExpr) -> Type:
20722072
"""Type check a binary operator expression."""
2073-
if e.op == 'in':
2074-
self.accept(e.right)
2075-
self.accept(e.left)
2076-
return self.bool_type()
20772073
if e.op == 'and' or e.op == 'or':
20782074
return self.check_boolean_op(e, e)
20792075
if e.op == '*' and isinstance(e.left, ListExpr):

0 commit comments

Comments
 (0)