Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/bslatkin/effectivepython
/ my_class_decorator
Function
my_class_decorator
example_code/item_066.py:213–215 ·
view source on GitHub ↗
(klass)
Source
from the content-addressed store, hash-verified
211
212
print(
"Example 8"
)
213
def
my_class_decorator(klass):
214
klass.extra_param =
"hello"
215
return
klass
216
217
@my_class_decorator
218
class
MyClass:
Callers
nothing calls this directly
Calls
no outgoing calls
Tested by
no test coverage detected