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

Method add

traitlets/config/loader.py:169–171  ·  view source on GitHub ↗

Add an item to a set

(self, obj: t.Any)

Source from the content-addressed store, hash-verified

167
168 # set methods
169 def add(self, obj: t.Any) -> None:
170 """Add an item to a set"""
171 self.update({obj})
172
173 def get_value(self, initial: t.Any) -> t.Any:
174 """construct the value from the initial one

Callers 3

should_warnFunction · 0.80
_classes_inc_parentsMethod · 0.80

Calls 1

updateMethod · 0.95

Tested by

no test coverage detected