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

Method get

traitlets/config/loader.py:773–777  ·  view source on GitHub ↗
(self, key: str, default: t.Any = None)

Source from the content-addressed store, hash-verified

771 raise KeyError(key)
772
773 def get(self, key: str, default: t.Any = None) -> t.Any:
774 try:
775 return self[key]
776 except KeyError:
777 return default
778
779
780class _KVArgParser(argparse.ArgumentParser):

Callers 10

should_warnFunction · 0.45
__init__Method · 0.45
class_get_trait_helpMethod · 0.45
_defining_classMethod · 0.45
class_config_sectionMethod · 0.45
application.pyFile · 0.45
initialize_subcommandMethod · 0.45
_add_argumentsMethod · 0.45
_convert_to_configMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected