Closed
Description
Using mypy-0.770 with no additional flags
from decimal import Decimal
foo = [Decimal("1"), Decimal("2")]
sum(foo)
sum(foo) + sum(foo)
The first sum
statement is okay, but the second is an error: Argument 1 to "sum" has incompatible type "List[Decimal]"; expected "Iterable[int]" [arg-type]