Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Comment
by
dgrunwald
· 8mo ago · 0 comments
But in Python the type checker does not complain about `x: float = 0`, because for the purpose of type checking (but not at runtime), `int` is considered a subtype of `float`:
https://typing.python.org/en/latest/spec/special-types.html#...
Comments
No comments yet.
Better HN