Every story and comment from the Hacker News API, in a layout borrowed from 2001.
A comment on Why We Chose Typescript. Parent comment
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
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