src/pybel/parser/parse_bel.py
def handle_molecular_activity_default(_: str, __: int, tokens: ParseResults) -> ParseResults:
    """Handle a BEL 2.0 style molecular activity with BEL default names."""
    upgraded_cls = language.activity_labels[tokens[0]]
    upgraded_concept = language.activity_mapping[upgraded_cls]
    tokens[NAMESPACE] = upgraded_concept.namespace
    tokens[NAME] = upgraded_concept.name
    tokens[IDENTIFIER] = upgraded_concept.identifier
    return tokens
Handle a BEL 2.0 style molecular activity with BEL default names.
Handle a BEL 2.0 style molecular activity with BEL default names.
Handle a BEL 2 . 0 style molecular activity with BEL default names .
def handle_molecular_activity_default(_: str, __: int, tokens: ParseResults) -> ParseResults:
    upgraded_cls = language.activity_labels[tokens[0]]
    upgraded_concept = language.activity_mapping[upgraded_cls]
    tokens[NAMESPACE] = upgraded_concept.namespace
    tokens[NAME] = upgraded_concept.name
    tokens[IDENTIFIER] = upgraded_concept.identifier
    return tokens
def handle_molecular_activity_default ( _ : str , __ : int , tokens : ParseResults ) -> ParseResults : upgraded_cls = language . activity_labels [ tokens [ 0 ] ] upgraded_concept = language . activity_mapping [ upgraded_cls ] tokens [ NAMESPACE ] = upgraded_concept . namespace tokens [ NAME ] = upgraded_concept . name tokens [ IDENTIFIER ] = upgraded_concept . identifier return tokens
Handle a BEL 2.0 style molecular activity with BEL default names.
Handle a BEL 2 . 0 style molecular activity with BEL default names .
"""Handle a BEL 2.0 style molecular activity with BEL default names."""
_
str
__
int
tokens
ParseResults