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

Method update

traitlets/config/loader.py:159–166  ·  view source on GitHub ↗

Update either a set or dict

(self, other: t.Any)

Source from the content-addressed store, hash-verified

157 _update = Any()
158
159 def update(self, other: t.Any) -> None:
160 """Update either a set or dict"""
161 if self._update is None:
162 if isinstance(other, dict):
163 self._update = {}
164 else:
165 self._update = set()
166 self._update.update(other)
167
168 # set methods
169 def add(self, obj: t.Any) -> None:

Callers 15

addMethod · 0.95
test_set_updateMethod · 0.45
test_dict_updateMethod · 0.45
MyAppClass · 0.45
__init__Method · 0.45
tagMethod · 0.45
add_traitsMethod · 0.45
from_string_listMethod · 0.45
flatten_flagsMethod · 0.45

Calls

no outgoing calls