MCPcopy
hub / github.com/faif/python-patterns / notify

Method notify

patterns/behavioral/observer.py:59–64  ·  view source on GitHub ↗

Notify all attached observers by calling their update method.

(self)

Source from the content-addressed store, hash-verified

57 pass
58
59 def notify(self) -> None:
60 """
61 Notify all attached observers by calling their update method.
62 """
63 for observer in self._observers:
64 observer.update(self)
65
66
67class Data(Subject):

Callers 1

dataMethod · 0.45

Calls 1

updateMethod · 0.45

Tested by

no test coverage detected