Skip to content

Commit

Permalink
Update mypy/checker.py
Browse files Browse the repository at this point in the history
Co-authored-by: Ilya Priven <[email protected]>
  • Loading branch information
sobolevn and ikonst authored Aug 24, 2023
1 parent 39b1803 commit 30522e9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mypy/checker.py
Original file line number Diff line number Diff line change
Expand Up @@ -5804,7 +5804,7 @@ def has_no_custom_eq_checks(t: Type) -> bool:
# respectively
original_vartype = self.lookup_type(node)
if not is_walrus_value:
# We don't check `:=` values in expresions like `(a := A())`,
# We don't check `:=` values in expressions like `(a := A())`,
# because they produce two error messages.
self._check_for_truthy_type(original_vartype, node)
vartype = try_expanding_sum_type_to_union(original_vartype, "builtins.bool")
Expand Down

0 comments on commit 30522e9

Please sign in to comment.