rasa/core/utils.py
def read_endpoint_config(filename: Text,
                         endpoint_type: Text) -> Optional['EndpointConfig']:
    """Read an endpoint configuration file from disk and extract one config."""

    if not filename:
        return None

    content = read_yaml_file(filename)
    if endpoint_type in content:
        return EndpointConfig.from_dict(content[endpoint_type])
    else:
        return None
Read an endpoint configuration file from disk and extract one config.
Read an endpoint configuration file from disk and extract one config.
Read an endpoint configuration file from disk and extract one config .
def read_endpoint_config(filename: Text,
                         endpoint_type: Text) -> Optional['EndpointConfig']:
    if not filename:
        return None
    content = read_yaml_file(filename)
    if endpoint_type in content:
        return EndpointConfig.from_dict(content[endpoint_type])
    else:
        return None
def read_endpoint_config ( filename : Text , endpoint_type : Text ) -> Optional [ 'EndpointConfig' ] : if not filename : return None content = read_yaml_file ( filename ) if endpoint_type in content : return EndpointConfig . from_dict ( content [ endpoint_type ] ) else : return None
Read an endpoint configuration file from disk and extract one config.
Read an endpoint configuration file from disk and extract one config .
"""Read an endpoint configuration file from disk and extract one config."""
filename
Text
endpoint_type
Text