Skip to content

Commit 8be0188

Browse files
committed
tmp
1 parent b327557 commit 8be0188

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mypy/checker.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5655,7 +5655,7 @@ def has_no_custom_eq_checks(t: Type) -> bool:
56555655
) and not custom_special_method(t, "__ne__", check_all=False)
56565656

56575657
is_valid_target = is_exactly_literal_type
5658-
coerce_only_in_literal_context = True
5658+
coerce_only_in_literal_context = False
56595659

56605660
expr_types = [operand_types[i] for i in expr_indices]
56615661
should_narrow_by_identity = all(map(has_no_custom_eq_checks, expr_types))

0 commit comments

Comments
 (0)