rasa/core/utils.py
def default_arg(request: Request,
                key: Text,
                default: Any = None) -> Optional[Any]:
    """Return an argument of the request or a default.

    Checks the `name` parameter of the request if it contains a value.
    If not, `default` is returned."""
    found = request.raw_args.get(key)
    if found is not None:
        return found
    else:
        return default
Return an argument of the request or a default.

    Checks the `name` parameter of the request if it contains a value.
    If not, `default` is returned.
Return an argument of the request or a default.
Checks the `name` parameter of the request if it contains a value.
If not, `default` is returned.
Return an argument of the request or a default . Checks the ` name ` parameter of the request if it contains a value . If not ` default ` is returned .
def default_arg(request: Request,
                key: Text,
                default: Any = None) -> Optional[Any]:
    found = request.raw_args.get(key)
    if found is not None:
        return found
    else:
        return default
def default_arg ( request : Request , key : Text , default : Any = None ) -> Optional [ Any ] : found = request . raw_args . get ( key ) if found is not None : return found else : return default
Return an argument of the request or a default.
Return an argument of the request or a default .
"""Return an argument of the request or a default.

    Checks the `name` parameter of the request if it contains a value.
    If not, `default` is returned."""
request
Request
key
Text
default
Any