MCPcopy Create free account
hub / github.com/bterwijn/memory_graph / wrapper

Function wrapper

src/decorator.py:2–6  ·  view source on GitHub ↗
(*args, **kwargs)

Source from the content-addressed store, hash-verified

1
2def log_call(function): # decorator example
3 def wrapper(*args, **kwargs):
4 print(f"log: '{function.__name__}' called with: {args}, {kwargs}")
5 return_value = function(*args, **kwargs)
6 print(f"log: '{function.__name__}' returned with: {return_value}")
7 return return_value
8 return wrapper
9

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected