MCPcopy Create free account
hub / github.com/bslatkin/effectivepython / register_class

Function register_class

example_code/item_063.py:124–125  ·  view source on GitHub ↗
(target_class)

Source from the content-addressed store, hash-verified

122REGISTRY = {}
123
124def register_class(target_class):
125 REGISTRY[target_class.__name__] = target_class
126
127def deserialize(data):
128 params = json.loads(data)

Callers 3

item_063.pyFile · 0.85
__new__Method · 0.85
__init_subclass__Method · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected