rasa/cli/utils.py
def minimal_kwargs(kwargs: Dict[Text, Any], func: Callable) -> Dict[Text, Any]:
    """Returns only the kwargs which are required by a function.

    Args:
        kwargs: All available kwargs.
        func: The function which should be called.

    Returns:
        Subset of kwargs which are accepted by `func`.

    """
    from rasa.core.utils import arguments_of

    possible_arguments = arguments_of(func)

    return {k: v for k, v in kwargs.items() if k in possible_arguments}
Returns only the kwargs which are required by a function.

    Args:
        kwargs: All available kwargs.
        func: The function which should be called.

    Returns:
        Subset of kwargs which are accepted by `func`.

    
Returns only the kwargs which are required by a function.
Returns only the kwargs which are required by a function .
def minimal_kwargs(kwargs: Dict[Text, Any], func: Callable) -> Dict[Text, Any]:
    from rasa.core.utils import arguments_of
    possible_arguments = arguments_of(func)
    return {k: v for k, v in kwargs.items() if k in possible_arguments}
def minimal_kwargs ( kwargs : Dict [ Text , Any ] , func : Callable ) -> Dict [ Text , Any ] : from rasa . core . utils import arguments_of possible_arguments = arguments_of ( func ) return { k : v for k , v in kwargs . items ( ) if k in possible_arguments }
Returns only the kwargs which are required by a function.
Returns only the kwargs which are required by a function .
"""Returns only the kwargs which are required by a function.

    Args:
        kwargs: All available kwargs.
        func: The function which should be called.

    Returns:
        Subset of kwargs which are accepted by `func`.

    """
Subset of kwargs which are accepted by `func`.
Subset of kwargs which are accepted by ` func ` .
kwargs
Dict[Text, Any]
All available kwargs.
All available kwargs .
func
Callable
The function which should be called.
The function which should be called .