Uh oh!
There was an error while loading. Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork 3.1k
Open
Labels
bugmypy got something wrongmypy got something wrong
Description
from functools import reduce tmp = reduce(lambda x, y: x + y, [[1], [2]]) # this works fine result = list(tmp) # but this one produces an error: # Unsupported left operand type for + ("Iterable[int]") result = list(reduce(lambda x, y: x + y, [[1], [2]])) $ mypy --version mypy 0.770 Python version:
>>> sys.version '3.8.2 (default, May 20 2020, 18:13:32) \n[GCC 7.5.0]' tompil
Metadata
Metadata
Assignees
Labels
bugmypy got something wrongmypy got something wrong