src/pybel/tokens.py
def _list_po_with_concept_to_dict(tokens: Union[ParseResults, Mapping[str, Any]]) -> ListAbundance:
    """Convert a list parse object to a node.

    :type tokens: ParseResult
    """
    func = tokens[FUNCTION]
    dsl = FUNC_TO_LIST_DSL[func]
    members = _parse_tokens_list(tokens[MEMBERS])

    concept = tokens[CONCEPT]
    return dsl(
        members=members,
        namespace=concept[NAMESPACE],
        name=concept.get(NAME),
        identifier=concept.get(IDENTIFIER),
        xrefs=tokens.get(XREFS),
    )
Convert a list parse object to a node.

    :type tokens: ParseResult
    
Convert a list parse object to a node.
Convert a list parse object to a node .
def _list_po_with_concept_to_dict(tokens: Union[ParseResults, Mapping[str, Any]]) -> ListAbundance:
    func = tokens[FUNCTION]
    dsl = FUNC_TO_LIST_DSL[func]
    members = _parse_tokens_list(tokens[MEMBERS])
    concept = tokens[CONCEPT]
    return dsl(
        members=members,
        namespace=concept[NAMESPACE],
        name=concept.get(NAME),
        identifier=concept.get(IDENTIFIER),
        xrefs=tokens.get(XREFS),
    )
def _list_po_with_concept_to_dict ( tokens : Union [ ParseResults , Mapping [ str , Any ] ] ) -> ListAbundance : func = tokens [ FUNCTION ] dsl = FUNC_TO_LIST_DSL [ func ] members = _parse_tokens_list ( tokens [ MEMBERS ] ) concept = tokens [ CONCEPT ] return dsl ( members = members , namespace = concept [ NAMESPACE ] , name = concept . get ( NAME ) , identifier = concept . get ( IDENTIFIER ) , xrefs = tokens . get ( XREFS ) , )
Convert a list parse object to a node.
Convert a list parse object to a node .
"""Convert a list parse object to a node.

    :type tokens: ParseResult
    """
tokens
Union[ParseResults, Mapping[str, Any]]