bundles / traitlets latest / traitlets / traitlets / BaseDescriptor / class_init
function
traitlets.traitlets:BaseDescriptor.class_init
source: /traitlets/traitlets.py:482
Signature
def class_init(self, cls: type[HasTraits], name: str | None) → NoneSummary
Part of the initialization which may depend on the underlying HasDescriptors class.
Extended Summary
It is typically overloaded for specific types.
This method is called by MetaHasDescriptors.__init__ passing the class (cls) and name under which the descriptor has been assigned.
Aliases
traitlets.BaseDescriptor.class_init