News for hackers. Stuff that matters.
Re:Why We Chose Typescript by yorwba on Friday June 30, 2017 @10:52PM (#14675084)
> I basically can't figure a way to annotate a function that takes an int/float/decimal/etc.

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

Re:Why We Chose Typescript by deathanatos on Friday June 30, 2017 @11:46PM (#14675260)
Hmm. I wasn't aware of that; still, it seems to not work for Decimal objects.