src/pybel/tokens.py
def _reaction_po_to_dict(tokens) -> Reaction:
    """Convert a reaction parse object to a DSL.

    :type tokens: ParseResult
    """
    return Reaction(
        reactants=_parse_tokens_list(tokens[REACTANTS]),
        products=_parse_tokens_list(tokens[PRODUCTS]),
    )
Convert a reaction parse object to a DSL.

    :type tokens: ParseResult
    
Convert a reaction parse object to a DSL.
Convert a reaction parse object to a DSL .
def _reaction_po_to_dict(tokens) -> Reaction:
    return Reaction(
        reactants=_parse_tokens_list(tokens[REACTANTS]),
        products=_parse_tokens_list(tokens[PRODUCTS]),
    )
def _reaction_po_to_dict ( tokens ) -> Reaction : return Reaction ( reactants = _parse_tokens_list ( tokens [ REACTANTS ] ) , products = _parse_tokens_list ( tokens [ PRODUCTS ] ) , )
Convert a reaction parse object to a DSL.
Convert a reaction parse object to a DSL .
"""Convert a reaction parse object to a DSL.

    :type tokens: ParseResult
    """
tokens