def add_extension(cls):
    typeinfo = TypeInfo(ns=cls.xmlns, typename=cls.xml_type)
    _BINDING_EXTENSION_MAP[typeinfo] = cls
Adds the binding class `cls` to the ``_EXTENSION_MAP``.
dataset/ETHPy150Open STIXProject/python-stix/stix/bindings/__init__.py/add_extension