rasa/core/slots.py
def resolve_by_type(type_name):
        """Returns a slots class by its type name."""
        for cls in utils.all_subclasses(Slot):
            if cls.type_name == type_name:
                return cls
        try:
            return utils.class_from_module_path(type_name)
        except(ImportError, AttributeError):
            raise ValueError(
                "Failed to find slot type, '{}' is neither a known type nor "
                "user-defined. If you are creating your own slot type, make "
                "sure its module path is correct.".format(type_name))
Returns a slots class by its type name.
Returns a slots class by its type name.
Returns a slots class by its type name .
def resolve_by_type(type_name):
        for cls in utils.all_subclasses(Slot):
            if cls.type_name == type_name:
                return cls
        try:
            return utils.class_from_module_path(type_name)
        except(ImportError, AttributeError):
            raise ValueError(
                "Failed to find slot type, '{}' is neither a known type nor "
                "user-defined. If you are creating your own slot type, make "
                "sure its module path is correct.".format(type_name))
def resolve_by_type ( type_name ) : for cls in utils . all_subclasses ( Slot ) : if cls . type_name == type_name : return cls try : return utils . class_from_module_path ( type_name ) except ( ImportError , AttributeError ) : raise ValueError ( "Failed to find slot type, '{}' is neither a known type nor " "user-defined. If you are creating your own slot type, make " "sure its module path is correct." . format ( type_name ) )
Returns a slots class by its type name.
Returns a slots class by its type name .
"""Returns a slots class by its type name."""
type_name