from typing import Any, Dict class CDAFloatCreate: """ CDA Float Create: Creates a Python float using a value entered in the text field. category: IO """ @classmethod def INPUT_TYPES(cls) -> Dict[str, Any]: """ Defines the input types for the `create` function. Returns: Dict[str, Any]: A dictionary specifying required input types. """ return { "required": { "data": ("STRING", {"multiline": False}), } } RETURN_TYPES: tuple = ("FLOAT",) FUNCTION: str = "create" CATEGORY: str = "Data Analysis" def create(self, data: str) -> tuple: """ creating a Python float for the text entered in the text field. Args: data (str): String value in the text field. Returns: tuple: A tuple containing the float converted from the text. """ return (float(data),)