MCPcopy Index your code
hub / github.com/plotly/dash / insert

Method insert

dash/_patch.py:135–139  ·  view source on GitHub ↗

Add the item at the index of a list

(self, index: int, item: Any)

Source from the content-addressed store, hash-verified

133 self._operations.append(_operation("Prepend", self._location, value=item))
134
135 def insert(self, index: int, item: Any) -> None:
136 """Add the item at the index of a list"""
137 self._operations.append(
138 _operation("Insert", self._location, value=item, index=index)
139 )
140
141 def clear(self) -> None:
142 """Remove all items in a list"""

Callers 2

test_pat015_patch_insertFunction · 0.95
on_insertFunction · 0.45

Calls 2

_operationFunction · 0.85
appendMethod · 0.45

Tested by 2

test_pat015_patch_insertFunction · 0.76
on_insertFunction · 0.36