We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
zip(*...) -> Any
1 parent ed847a8 commit e0a2c8eCopy full SHA for e0a2c8e
mypy/checkexpr.py
@@ -2701,7 +2701,8 @@ def check_overload_call(
2701
# Record if we succeeded. Next we need to see if maybe normal procedure
2702
# gives a narrower type.
2703
if unioned_return:
2704
- returns, inferred_types = zip(*unioned_return)
+ returns = tuple(u[0] for u in unioned_return)
2705
+ inferred_types = tuple(u[1] for u in unioned_return)
2706
# Note that we use `combine_function_signatures` instead of just returning
2707
# a union of inferred callables because for example a call
2708
# Union[int -> int, str -> str](Union[int, str]) is invalid and
0 commit comments