We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2ebc690 commit 02100aaCopy full SHA for 02100aa
mypy/checker.py
@@ -6255,7 +6255,7 @@ def has_no_custom_eq_checks(t: Type) -> bool:
6255
) and not custom_special_method(t, "__ne__", check_all=False)
6256
6257
is_valid_target = is_exactly_literal_type
6258
- coerce_only_in_literal_context = True
+ coerce_only_in_literal_context = False
6259
6260
expr_types = [operand_types[i] for i in expr_indices]
6261
should_narrow_by_identity = all(
0 commit comments