MCPcopy Create free account
hub / github.com/ipython/traitlets / load_config

Method load_config

traitlets/config/loader.py:514–522  ·  view source on GitHub ↗

Load a config from somewhere, return a :class:`Config` instance. Usually, this will cause self.config to be set and then returned. However, in most cases, :meth:`ConfigLoader.clear` should be called to erase any previous state.

(self)

Source from the content-addressed store, hash-verified

512 self.config = Config()
513
514 def load_config(self) -> Config:
515 """Load a config from somewhere, return a :class:`Config` instance.
516
517 Usually, this will cause self.config to be set and then returned.
518 However, in most cases, :meth:`ConfigLoader.clear` should be called
519 to erase any previous state.
520 """
521 self.clear()
522 return self.config
523
524
525class FileConfigLoader(ConfigLoader):

Callers 15

test_basicMethod · 0.45
test_add_argumentsMethod · 0.45
test_argvMethod · 0.45
test_list_argsMethod · 0.45
test_evalMethod · 0.45
test_basicMethod · 0.45
test_expanduserMethod · 0.45
test_extra_argsMethod · 0.45
test_unicode_argsMethod · 0.45
test_list_appendMethod · 0.45
test_list_single_itemMethod · 0.45
test_dictMethod · 0.45

Calls 1

clearMethod · 0.95

Tested by 15

test_basicMethod · 0.36
test_add_argumentsMethod · 0.36
test_argvMethod · 0.36
test_list_argsMethod · 0.36
test_evalMethod · 0.36
test_basicMethod · 0.36
test_expanduserMethod · 0.36
test_extra_argsMethod · 0.36
test_unicode_argsMethod · 0.36
test_list_appendMethod · 0.36
test_list_single_itemMethod · 0.36
test_dictMethod · 0.36