def register_vocab(cls):
    add_vocab(cls)

    cls._ALLOWED_VALUES = tuple(_get_terms(cls))
    return cls
Class decorator that registers a VocabString subclass.
dataset/ETHPy150Open STIXProject/python-stix/stix/common/vocabs.py/register_vocab