Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Error while multiplying a `SupportsInt` and an int #4758
I've got the following code:
from decimal import Decimal d = Decimal('10') x = max(d, 0) * 3
I expect to be able to perform any operation between X and SupportsX if that operation is supported between X and another X.
This is mypy 0.570 and the underlying code is Python 3.6.1. I can reproduce this issue with no flags passed.
It is derived as the return type for
Your best option is probably to use