pyiron_base.storage.has_stored_traits.ABCTraitsMeta#

class pyiron_base.storage.has_stored_traits.ABCTraitsMeta(name: str, bases: tuple[type, ...], classdict: dict[str, Any], **kwds: Any)[source]#

Bases: MetaHasTraits, ABCMeta

Just a bookkeeping necessity for classes that inherit from both ABC and HasTraits.

__init__(name: str, bases: tuple[type, ...], classdict: dict[str, Any], **kwds: Any) None#

Finish initializing the HasDescriptors class.

Methods

__init__(name, bases, classdict, **kwds)

Finish initializing the HasDescriptors class.

mro()

Return a type's method resolution order.

register(subclass)

Register a virtual subclass of an ABC.

setup_class(classdict)

Setup descriptor instance on the class

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.

setup_class(classdict: dict[str, Any]) None#

Setup descriptor instance on the class

This sets the this_class and name attributes of each BaseDescriptor in the class dict of the newly created cls before calling their class_init method.