* numbers.Real / Union[float,int] do not work correctly; I basically can't figure a way to annotate a function that takes an int/float/decimal/etc.
(mypy doesn't think "int" is a valid "Real", and it doesn't think you can add two Union[float,int] objects.)
(mypy has nonetheless been very helpful, and overall I would recommend it.)
It seems like you should be able to just annotate it with float?
... when an argument is annotated as having type float , an argument of type int is acceptable ...
https://www.python.org/dev/peps/pep-0484/#the-numeric-tower