{ } Raw JSON

bundles / traitlets 5.15.0 / traitlets / config / configurable / Configurable / _find_my_config

function

traitlets.config.configurable:Configurable._find_my_config

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

Signature

def   _find_my_config ( self cfg : Config )  →  t.Any

Summary

extract my config from a global Config object

Extended Summary

will construct a Config object of only the config values that apply to me based on my mro(), as well as those of my parent(s) if they exist.

If I am Bar and my parent is Foo, and their parent is Tim, this will return merge following config sections, in this order

[Bar, Foo.Bar, Tim.Foo.Bar]

With the last item being the highest priority.

Aliases

  • traitlets.config.Configurable._find_my_config