MCPcopy Create free account
hub / github.com/scottrogowski/code2flow / trace

Function trace

tests/test_code/py/nested_calls/nested_calls.py:3–7  ·  view source on GitHub ↗
(fn: Callable)

Source from the content-addressed store, hash-verified

1from typing import Callable
2
3def trace(fn: Callable) -> Callable:
4 def wrapper(*args, **kwargs):
5 print('traced call')
6 return fn(*args, **kwargs)
7 return wrapper
8
9def do_something(msg):
10 return msg + ' world'

Callers 1

nested_calls.pyFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected