Skip to content

Commit 02100aa

Browse files
committed
equal literal
1 parent 2ebc690 commit 02100aa

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
@@ -6255,7 +6255,7 @@ def has_no_custom_eq_checks(t: Type) -> bool:
62556255
) and not custom_special_method(t, "__ne__", check_all=False)
62566256

62576257
is_valid_target = is_exactly_literal_type
6258-
coerce_only_in_literal_context = True
6258+
coerce_only_in_literal_context = False
62596259

62606260
expr_types = [operand_types[i] for i in expr_indices]
62616261
should_narrow_by_identity = all(

0 commit comments

Comments
 (0)