Skip to content

Commit 7d2b466

Browse files
committed
Remove duplicated check from condition
1 parent 648bd84 commit 7d2b466

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mypy/reachability.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ def infer_condition_value(expr: Expression, options: Options) -> int:
127127
name = expr.name
128128
elif isinstance(expr, MemberExpr):
129129
name = expr.name
130-
elif isinstance(expr, OpExpr) and expr.op in ("and", "or"):
130+
elif isinstance(expr, OpExpr):
131131
if expr.op not in ("or", "and"):
132132
return TRUTH_VALUE_UNKNOWN
133133

0 commit comments

Comments
 (0)