rasa_sdk/forms.py
def _to_list(x: Optional[Any]) -> List[Any]:
        """Convert object to a list if it is not a list,
        None converted to empty list
        """
        if x is None:
            x = []
        elif not isinstance(x, list):
            x = [x]

        return x
Convert object to a list if it is not a list,
        None converted to empty list
        
Convert object to a list if it is not a list,
None converted to empty list
Convert object to a list if it is not a list None converted to empty list
def _to_list(x: Optional[Any]) -> List[Any]:
        if x is None:
            x = []
        elif not isinstance(x, list):
            x = [x]
        return x
def _to_list ( x : Optional [ Any ] ) -> List [ Any ] : if x is None : x = [ ] elif not isinstance ( x , list ) : x = [ x ] return x
Convert object to a list if it is not a list,
None converted to empty list
Convert object to a list if it is not a list None converted to empty list
"""Convert object to a list if it is not a list,
        None converted to empty list
        """
x
Optional[Any]