File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments