def __init__(self, component: str, child: Any):
        """Initialize the exception.

        Args:
            component: The name of the component.
            child: The child that caused the error.
        """
        super().__init__(
            f"Component {component} received child {child} of type {type(child)}. "
            "Accepted types are other components, state vars, or primitive Python types (dict excluded)."
        )
Initialize the exception.

        Args:
            component: The name of the component.
            child: The child that caused the error.
        
reflex/utils/exceptions.py