Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
1
from
typing
import
Callable
2
3
def
trace(fn: Callable) -> Callable:
4
def
wrapper(*args, **kwargs):
5
print(
'traced call'
)
6
return
fn(*args, **kwargs)
7
return
wrapper
8
9
def
do_something(msg):
10
return
msg +
' world'
Callers
1
nested_calls.py
File · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected