MetaLockedDownTraits

class wwt_data_formats.MetaLockedDownTraits(name, bases, namespace, **kwargs)[source]

Bases: ABCMeta, MetaHasTraits

A metaclass to help with the LockedDownTraits class. When a class using this metaclass is created, a frozenset of all of the traitlets attached to the class definition (including those defined by its base classes) is created for fast checks during __setattr__ calls. The other setup done by traitlet’s MetaHasTraits metaclass is also performed.

Methods Summary

__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.

setup_class(classdict)

Setup descriptor instance on the class

Methods Documentation

__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.

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.