MCPcopy
hub / github.com/SFTtech/openage / update

Method update

openage/util/observer.py:28–37  ·  view source on GitHub ↗

Called by an Observable object that has registered this observer whenever it changes. :param observable: The obvervable object which was updated. :type observable: Observable :param message: An optional message of any type.

(self, observable: Observable, message: Optional[Any] = None)

Source from the content-addressed store, hash-verified

26 """
27
28 def update(self, observable: Observable, message: Optional[Any] = None):
29 """
30 Called by an Observable object that has registered this observer
31 whenever it changes.
32
33 :param observable: The obvervable object which was updated.
34 :type observable: Observable
35 :param message: An optional message of any type.
36 """
37 raise NotImplementedError(f"{self} has not implemented update()")
38
39
40class Observable:

Callers 7

add_childMethod · 0.45
get_alias_dictMethod · 0.45
__init__Method · 0.45
__init__Method · 0.45
hash_fileFunction · 0.45
notify_observersMethod · 0.45
listMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected