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

Method insert

traitlets/config/loader.py:150–153  ·  view source on GitHub ↗
(self, index: int, other: t.Any)

Source from the content-addressed store, hash-verified

148 return self.get_value(other)
149
150 def insert(self, index: int, other: t.Any) -> None:
151 if not isinstance(index, int):
152 raise TypeError("An integer is required")
153 self._inserts.append((index, other))
154
155 # dict methods
156 # update is used for both dict and set

Callers 5

test_insertMethod · 0.80
test_insert_extendMethod · 0.80
conf.pyFile · 0.80
__init__Method · 0.80
get_valueMethod · 0.80

Calls 1

appendMethod · 0.80

Tested by 2

test_insertMethod · 0.64
test_insert_extendMethod · 0.64