def get_list_from_literal(literal: _LiteralGenericAlias) -> List[str]:
    """
    Get a list of strings from a Literal type.

    Parameters
    ----------
    literal (_LiteralGenericAlias): The Literal type from which to extract the strings.

    Returns
    -------
    List[str]: A list of strings extracted from the Literal type.

    """
    if not isinstance(literal, _LiteralGenericAlias):
        raise TypeError(
            f"{literal} must be a Literal type.\nTry using typing.Literal{literal}."
        )
    return list(get_args(literal))

    Get a list of strings from a Literal type.

    Parameters
    ----------
    literal (_LiteralGenericAlias): The Literal type from which to extract the strings.

    Returns
    -------
    List[str]: A list of strings extracted from the Literal type.

    
llama-index-integrations/graph_stores/llama-index-graph-stores-kuzu/llama_index/graph_stores/kuzu/utils.py