Skip to content

Commit bdfc626

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent ca5120d commit bdfc626

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

mypy/checker.py

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6658,11 +6658,7 @@ def equality_type_narrowing_helper(
66586658
# If we haven't been able to narrow types yet, we might be dealing with a
66596659
# explicit type(x) == some_type check
66606660
if_map, else_map = self.narrow_type_by_equality(
6661-
operator,
6662-
operands,
6663-
operand_types,
6664-
expr_indices,
6665-
narrowable_indices=narrowable_indices,
6661+
operator, operands, operand_types, expr_indices, narrowable_indices=narrowable_indices
66666662
)
66676663
if node is not None:
66686664
type_if_map, type_else_map = self.find_type_equals_check(node, expr_indices)
@@ -7000,7 +6996,9 @@ def refine_identity_comparison_expression(
70006996
else_map = {}
70016997
partial_type_maps.append((if_map, else_map))
70026998

7003-
final_if_map, final_else_map = reduce_conditional_maps(partial_type_maps, use_meet=len(operands) > 2)
6999+
final_if_map, final_else_map = reduce_conditional_maps(
7000+
partial_type_maps, use_meet=len(operands) > 2
7001+
)
70047002
# print("final_if_map", {str(k): str(v) for k, v in final_if_map.items()})
70057003
# print("final_else_map", {str(k): str(v) for k, v in final_else_map.items()})
70067004
return final_if_map, final_else_map

0 commit comments

Comments
 (0)