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

Method update

patterns/behavioral/observer.py:18–25  ·  view source on GitHub ↗

Receive update from the subject. Args: subject (Subject): The subject instance sending the update.

(self, subject: Subject)

Source from the content-addressed store, hash-verified

16
17class Observer:
18 def update(self, subject: Subject) -> None:
19 """
20 Receive update from the subject.
21
22 Args:
23 subject (Subject): The subject instance sending the update.
24 """
25 pass
26
27
28class Subject:

Callers 5

notifyMethod · 0.45
restoreFunction · 0.45
__init__Method · 0.45
__init__Method · 0.45
cloneMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected