MCPcopy Create free account
hub / github.com/dabeaz/python-cookbook / example1.py

File example1.py

src/9/defining_decorators_as_classes/example1.py:None–None  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1# Example of defining a decorator as a class
2import types
3from functools import wraps
4

Callers

nothing calls this directly

Calls 3

addFunction · 0.70
SpamClass · 0.70
barMethod · 0.45

Tested by

no test coverage detected