

def buildMessageRegistry(seq, suffixes=[''], bases=(Message,)):
    ' Construct message types and add to given mapping.\n\n    @param seq pairs of method (name, arguments)\n    @param bases sequence of base classes for message types\n    @return None\n    '
    for (name, args) in sorted(seq):
        for suffix in suffixes:
            typename = (toTypeName(name) + suffix)
            typens = {
                '__slots__': args,
                '__assoc__': typens,
                'typeName': name,
            }
            msgtype = type(typename, bases, typens)
            if (name in registry):
                registry[name] = (registry[name] + (msgtype,))
            else:
                registry[name] = (msgtype,)

dataset/ETHPy150Open CarterBain/Medici/ib/opt/message.py buildMessageRegistry/VarMisuse@68/149 `name`->`typens`