MCPcopy
hub / github.com/bugy/script-server / insert

Method insert

src/react/properties.py:76–80  ·  view source on GitHub ↗
(self, i: int, item: _T)

Source from the content-addressed store, hash-verified

74 observer.on_add(item, len(self.data) - 1)
75
76 def insert(self, i: int, item: _T) -> None:
77 super().insert(i, item)
78
79 for observer in self._observers:
80 observer.on_add(item, i)
81
82 def pop(self, i: int = ...) -> _T:
83 item = super().pop(i)

Callers 1

init.pyFile · 0.80

Calls 1

on_addMethod · 0.45

Tested by

no test coverage detected