bundles / traitlets 5.14.3 / traitlets / config / configurable / Configurable / _defining_class
classmethod
traitlets.config.configurable:Configurable._defining_class
Summary
Get the class that defines a trait
Extended Summary
For reducing redundant help output in config files. Returns the current class if: - the trait is defined on this class, or - the class where it is defined would not be in the config file
Parameters
trait: TraitThe trait to look for
classes: listThe list of other classes to consider for redundancy. Will return
clseven if it is not defined onclsif the defining class is not in classes.
Aliases
-
traitlets.config.Configurable._defining_class