{ } Raw JSON

bundles / traitlets 5.15.0 / traitlets / config / loader / Config

class

traitlets.config.loader:Config

source: /traitlets/config/loader.py :224

Signature

class   Config ( * args : t.Any ** kwds : t.Any )  →  None

Members

Summary

An attribute-based dict that can do smart merges.

Extended Summary

Accessing a field on a config object for the first time populates the key with either a nested Config object for keys starting with capitals or .LazyConfigValue for lowercase keys, allowing quick assignments such as

c = Config()
c.Class.int_trait = 5
c.Class.list_trait.append("x")

Aliases

  • traitlets.config.Config

Referenced by

This package