MCPcopy Create free account
hub / github.com/Aveiro-Lin/GraphiContact / eval_math_expression

Function eval_math_expression

src/transformers/utils/check_docstrings.py:850–876  ·  view source on GitHub ↗

Evaluate (safely) a mathematial expression and returns its value. Args: expression (`str`): The expression to evaluate. Returns: `Optional[Union[float, int]]`: Returns `None` if the evaluation fails in any way and the value computed otherwise. Example:

(expression: str)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 1

Calls 2

eval_nodeFunction · 0.85
parseMethod · 0.80

Tested by

no test coverage detected