You are viewing an older version (5.14.3). Go to latest (5.15.0)
{ } Raw JSON

bundles / traitlets 5.14.3 / traitlets / traitlets / MetaHasDescriptors / setup_class

function

traitlets.traitlets:MetaHasDescriptors.setup_class

source: /traitlets/traitlets.py :972

Signature

def   setup_class ( cls : MetaHasDescriptors classdict : dict[str, t.Any] )  →  None

Summary

Setup descriptor instance on the class

Extended Summary

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.

Aliases

  • traitlets.MetaHasDescriptors.setup_class