ABCEnumMeta

class hugr.passes.scope.ABCEnumMeta(name, bases, namespace, /, **kwargs)[source]

Bases: ABCMeta, EnumType

Custom metaclass for things that inherit from both ABC and Enum.

This is to solve the error: Metaclass conflict: the metaclass of a derived class must be a (non-strict) subclass of the metaclasses of all its bases [metaclass]

Methods

mro

Return a type's method resolution order.

register

Register a virtual subclass of an ABC.

mro()

Return a type’s method resolution order.

register(subclass)

Register a virtual subclass of an ABC.

Returns the subclass, to allow usage as a class decorator.