Skip to content

Commit e0a2c8e

Browse files
committed
fix zip(*...) -> Any problem
1 parent ed847a8 commit e0a2c8e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

mypy/checkexpr.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2701,7 +2701,8 @@ def check_overload_call(
27012701
# Record if we succeeded. Next we need to see if maybe normal procedure
27022702
# gives a narrower type.
27032703
if unioned_return:
2704-
returns, inferred_types = zip(*unioned_return)
2704+
returns = tuple(u[0] for u in unioned_return)
2705+
inferred_types = tuple(u[1] for u in unioned_return)
27052706
# Note that we use `combine_function_signatures` instead of just returning
27062707
# a union of inferred callables because for example a call
27072708
# Union[int -> int, str -> str](Union[int, str]) is invalid and

0 commit comments

Comments
 (0)