def __init__(self, element, spec):
        self.name = element.attrib['name']

        self.require = []
        for required in chain.from_iterable(element.findall('require')):
            if required.tag == 'type':
                continue

            data = {'enum': spec.enums, 'command': spec.commands}[required.tag]
            try:
                self.require.append(data[required.attrib['name']])
            except __HOLE__:
                pass  # TODO
dataset/ETHPy150Open Dav1dde/glad/glad/parse.py/Extension.__init__