18 from typing
import Any, List, Optional, Union
20 from ..base_parameter
import BaseParameter
21 from ....project
import ProjectType
24 class FloatParameter(BaseParameter[Union[float, int]]):
27 def types(self) -> List[type]:
30 def parseValue(self, type_: ProjectType) -> Optional[Any]:
31 if isinstance(self.value, int):
32 return float(self.value)
34 return super().parseValue(type_)