pint.models.timing_model.ModelMeta

class pint.models.timing_model.ModelMeta(name, bases, namespace, /, **kwargs)[source]

Bases: ABCMeta

Ensure timing model registration.

When a new subclass of Component is created, record its identity in a class attribute component_types, provided that the class has an attribute register. This makes sure all timing model components are listed in Component.component_types.

Methods

mro()

Return a type's method resolution order.

register(subclass)

Register a virtual subclass of an ABC.

__call__(*args, **kwargs)

Call self as a function.

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.