Closed
Description
https://mypy.readthedocs.io/en/stable/duck_type_compatibility.html
int
is duck type compatible withfloat
No it's not:
f: float = 1
f.is_integer()
https://mypy.readthedocs.io/en/stable/duck_type_compatibility.html
int
is duck type compatible withfloat
No it's not:
f: float = 1
f.is_integer()