Skip to content

Commit

Permalink
renaming and slight formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
eladshoshani committed Apr 23, 2024
1 parent f7905a0 commit d5348c4
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions mypy/checker.py
Original file line number Diff line number Diff line change
Expand Up @@ -5950,15 +5950,11 @@ def has_no_custom_eq_checks(t: Type) -> bool:
# if the iterable has `None` in it then the condition is worthless
and not any(is_literal_none(i) for i in right.items)
):
for item_in_right_collection in right.items:
item_in_right_collection_type = self.lookup_type(
item_in_right_collection
)
for i in right.items:
i_type = self.lookup_type(i)
# Remove the option of the current item to be `None` for the entire else scope
if is_overlapping_none(item_in_right_collection_type):
else_map[item_in_right_collection] = remove_optional(
item_in_right_collection_type
)
if is_overlapping_none(i_type):
else_map[i] = remove_optional(i_type)
else:
if_map = {}
else_map = {}
Expand Down

0 comments on commit d5348c4

Please sign in to comment.