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

bundles / traitlets 5.14.3 / 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