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

Method extend

src/react/properties.py:105–112  ·  view source on GitHub ↗
(self, other: Iterable[_T])

Source from the content-addressed store, hash-verified

103 observer.on_remove(item)
104
105 def extend(self, other: Iterable[_T]) -> None:
106 first_index = len(self.data)
107
108 super().extend(other)
109
110 for i, item in enumerate(other):
111 for observer in self._observers:
112 observer.on_add(item, first_index + i)
113
114
115class ObservableDict(UserDict):

Callers 12

__init__Method · 0.95
_pre_3_5_recursive_globFunction · 0.80
_decode_utf8_with_mixesFunction · 0.80
get_groupsMethod · 0.80
read_nestedFunction · 0.80
_execution_finishedMethod · 0.80
find_matching_filesFunction · 0.80
build_command_argsFunction · 0.80
createVueFunction · 0.80
index.jsFile · 0.80

Calls 1

on_addMethod · 0.45