MCPcopy Create free account
hub / github.com/RefactoringGuru/design-patterns-python / attach

Method attach

src/Observer/Conceptual/main.py:40–46  ·  view source on GitHub ↗

EN: Attach an observer to the subject. RU: Присоединяет наблюдателя к издателю.

(self, observer: Observer)

Source from the content-addressed store, hash-verified

38
39 @abstractmethod
40 def attach(self, observer: Observer) -> None:
41 """
42 EN: Attach an observer to the subject.
43
44 RU: Присоединяет наблюдателя к издателю.
45 """
46 pass
47
48 @abstractmethod
49 def detach(self, observer: Observer) -> None:

Callers 1

main.pyFile · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected