You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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]'
The text was updated successfully, but these errors were encountered:
Python version:
The text was updated successfully, but these errors were encountered: