Closed inferrinizzard closed 2 months ago
Allows for int types in to_float for Python output
to_float
Fixes #2533
existing to_float output:
def to_float(x: Any) -> float: assert isinstance(x, float) return x
newto_float output:
def to_float(x: Any) -> float: assert isinstance(x, (int, float)) return x
N/a
Description
Allows for int types in
to_float
for Python outputRelated Issue
Fixes #2533
Previous Behaviour / Output
existing
to_float
output:New Behaviour / Output
new
to_float
output:How Has This Been Tested?
Screenshots (if appropriate):
N/a