def __new__(self, name, bases, classdict):
        classdict['__ordered__'] = [key for key in classdict.keys() if key not in ('__module__', '__qualname__')]
        for each in bases:  # add keys from base classes also
            odict = getattr(each, '__ordered__', each.__dict__)
            classdict['__ordered__'] = [key for key in odict if ('__module__', '__qualname__') not in key] + \
                classdict['__ordered__']

        return type.__new__(self, name, bases, classdict)
dataset/ETHPy150Open kashifrazzaqui/vyked/vyked/utils/ordered_class_member.py/OrderedClassMembers.__new__/swapped operands of `not in`