Skip to content

Commit 8fbd288

Browse files
committed
gpt
1 parent 006305e commit 8fbd288

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

mypy/checkexpr.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3807,12 +3807,12 @@ def visit_comparison_expr(self, e: ComparisonExpr) -> Type:
38073807
and not (
38083808
isinstance(left, NameExpr)
38093809
and isinstance(left.node, Var)
3810-
and isinstance(left.node.type, AnyType)
3810+
and isinstance(get_proper_type(left.node.type), AnyType)
38113811
)
38123812
and not (
38133813
isinstance(right, NameExpr)
38143814
and isinstance(right.node, Var)
3815-
and isinstance(right.node.type, AnyType)
3815+
and isinstance(get_proper_type(right.node.type), AnyType)
38163816
)
38173817
):
38183818
# Show the most specific literal types possible

0 commit comments

Comments
 (0)