{ } Raw JSON

bundles / traitlets latest / traitlets / config / configurable / Configurable / _defining_class

classmethod

traitlets.config.configurable:Configurable._defining_class

source: /traitlets/config/configurable.py :329

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 : Trait

The trait to look for

classes : list

The list of other classes to consider for redundancy. Will return cls even if it is not defined on cls if the defining class is not in classes.

Aliases

  • traitlets.config.Configurable._defining_class