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

Method update

traitlets/config/manager.py:76–84  ·  view source on GitHub ↗

Modify the config section by recursively updating it with new_data. Returns the modified config data as a dictionary.

(self, section_name: str, new_data: Any)

Source from the content-addressed store, hash-verified

74 json.dump(data, f, indent=2)
75
76 def update(self, section_name: str, new_data: Any) -> Any:
77 """Modify the config section by recursively updating it with new_data.
78
79 Returns the modified config data as a dictionary.
80 """
81 data = self.get(section_name)
82 recursive_update(data, new_data)
83 self.set(section_name, data)
84 return data

Callers

nothing calls this directly

Calls 3

getMethod · 0.95
setMethod · 0.95
recursive_updateFunction · 0.85

Tested by

no test coverage detected