MCPcopy Index your code
hub / github.com/bugy/script-server / clear

Method clear

src/react/properties.py:96–103  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

94 observer.on_remove(item)
95
96 def clear(self) -> None:
97 copy = list(self.data)
98
99 super().clear()
100
101 for item in copy:
102 for observer in self._observers:
103 observer.on_remove(item)
104
105 def extend(self, other: Iterable[_T]) -> None:
106 first_index = len(self.data)

Callers 6

cleanupFunction · 0.45
cleanupMethod · 0.45
tearDownMethod · 0.45
load_modelMethod · 0.45

Calls 1

on_removeMethod · 0.45

Tested by 4

cleanupFunction · 0.36
tearDownMethod · 0.36