MCPcopy Create free account
hub / github.com/awslabs/gap-text2sql / decorator

Function decorator

rat-sql-gap/seq2struct/utils/registry.py:13–17  ·  view source on GitHub ↗
(obj)

Source from the content-addressed store, hash-verified

11 kind_registry = _REGISTRY[kind]
12
13 def decorator(obj):
14 if name in kind_registry:
15 raise LookupError('{} already registered as kind {}'.format(name, kind))
16 kind_registry[name] = obj
17 return obj
18
19 return decorator
20

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected