Skip to content

Commit 85eb817

Browse files
committed
.
1 parent 6464eac commit 85eb817

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

mypy/checker.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6979,12 +6979,10 @@ def propagate_up_typemap_info(self, new_types: TypeMap) -> TypeMap:
69796979
for expr, expr_type in new_types.items():
69806980
all_mappings.append(self.refine_parent_types(expr, expr_type))
69816981
return and_conditional_maps(
6982-
new_types,
6983-
reduce_and_conditional_type_maps(all_mappings, use_meet=True),
6984-
use_meet=True
6982+
new_types, reduce_and_conditional_type_maps(all_mappings, use_meet=True), use_meet=True
69856983
)
69866984

6987-
def refine_parent_types(self, expr: Expression, expr_type: Type) -> Mapping[Expression, Type]:
6985+
def refine_parent_types(self, expr: Expression, expr_type: Type) -> TypeMap:
69886986
"""Checks if the given expr is a 'lookup operation' into a union and iteratively refines
69896987
the parent types based on the 'expr_type'.
69906988

0 commit comments

Comments
 (0)