Skip to content

Commit

Permalink
Fix CI
Browse files Browse the repository at this point in the history
  • Loading branch information
sobolevn committed Aug 28, 2023
1 parent 1ddea5c commit aca01cb
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions mypy/checker.py
Original file line number Diff line number Diff line change
Expand Up @@ -5758,16 +5758,16 @@ def has_no_custom_eq_checks(t: Type) -> bool:
if_map = {}
else_map = {}

if_assignment_map, else_assignment_map = self.find_isinstance_check(
node.target, in_boolean_context=False
)
if_assignment_map, else_assignment_map = self.find_isinstance_check(node.target)

if if_assignment_map is not None:
if_map.update(if_assignment_map)
if else_assignment_map is not None:
else_map.update(else_assignment_map)

if_condition_map, else_condition_map = self.find_isinstance_check(node.value)
if_condition_map, else_condition_map = self.find_isinstance_check(
node.value, in_boolean_context=False
)

if if_condition_map is not None:
if_map.update(if_condition_map)
Expand Down

0 comments on commit aca01cb

Please sign in to comment.