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

Method do_b

src/Mediator/Conceptual/main.py:87–89  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

85 self.mediator.notify(self, "A")
86
87 def do_b(self) -> None:
88 print("Component 1 does B.")
89 self.mediator.notify(self, "B")
90
91
92class Component2(BaseComponent):

Callers 1

notifyMethod · 0.80

Calls 1

notifyMethod · 0.45

Tested by

no test coverage detected