MCPcopy Create free account
hub / github.com/apache/fory / complex_function

Function complex_function

python/pyfory/tests/test_function.py:60–62  ·  view source on GitHub ↗

A more complex function with default arguments.

(a, b, c=10)

Source from the content-addressed store, hash-verified

58 return x + 1
59
60 def complex_function(a, b, c=10):
61 """A more complex function with default arguments."""
62 return a * b + c
63
64 # Test regular function
65 fory.register_type(type(add_one))

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected