Skip to content

Commit 16c768f

Browse files
committed
turn inferred_types and results into lists
1 parent f7b689c commit 16c768f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

mypy/checkexpr.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2746,14 +2746,14 @@ def check_overload_call(
27462746
# Record if we succeeded. Next we need to see if maybe normal procedure
27472747
# gives a narrower type.
27482748
if unioned_return:
2749-
returns = tuple(u[0] for u in unioned_return)
2750-
inferred_types = tuple(u[1] for u in unioned_return)
2749+
returns = [u[0] for u in unioned_return]
2750+
inferred_types = [u[1] for u in unioned_return]
27512751
# Note that we use `combine_function_signatures` instead of just returning
27522752
# a union of inferred callables because for example a call
27532753
# Union[int -> int, str -> str](Union[int, str]) is invalid and
27542754
# we don't want to introduce internal inconsistencies.
27552755
unioned_result = (
2756-
make_simplified_union(list(returns), context.line, context.column),
2756+
make_simplified_union(returns, context.line, context.column),
27572757
self.combine_function_signatures(get_proper_types(inferred_types)),
27582758
)
27592759

0 commit comments

Comments
 (0)