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

Method __init__

src/react/properties.py:57–62  ·  view source on GitHub ↗
(self, initlist: Optional[Iterable[_T]] = None)

Source from the content-addressed store, hash-verified

55
56class ObservableList(UserList):
57 def __init__(self, initlist: Optional[Iterable[_T]] = None) -> None:
58 super().__init__()
59 self._observers = []
60
61 if initlist:
62 self.extend(initlist)
63
64 def subscribe(self, observer):
65 self._observers.append(observer)

Callers

nothing calls this directly

Calls 2

extendMethod · 0.95
__init__Method · 0.45

Tested by

no test coverage detected