@classmethod
def _enforceSingleInheritance(cls, classname, bases, classdict):
    """Only one base class is allowed for enumerated types."""
    if len(bases) > 1:
        raise TypeError(
            'Multiple inheritance is not allowed with %s, %s.%s' % (cls.
            enum_name, classdict['__module__'], classname))
