(path_type: str)
return _PATH_OPTIONS[path_type]
Get the correct path finding function from str ``path_type``.
Get the correct path finding function from str ``path_type``.
Get the correct path finding function from str path_type .
def get_path_fn(path_type: str) -> PathSearchFunctionType:
    """Get the correct path finding function from str ``path_type``."""
    path_type = path_type.lower()
    if path_type not in _PATH_OPTIONS:
        raise KeyError(
            "Path optimizer '{}' not found, valid options are {}.".format(path_type, set(_PATH_OPTIONS.keys()))
        )

    return _PATH_OPTIONS[path_type]
def get_path_fn ( path_type : str ) -> PathSearchFunctionType : path_type = path_type . lower ( ) if path_type not in _PATH_OPTIONS : raise KeyError ( "Path optimizer '{}' not found, valid options are {}." . format ( path_type , set ( _PATH_OPTIONS . keys ( ) ) ) ) return _PATH_OPTIONS [ path_type ]