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

Class Component1

src/Mediator/Conceptual/main.py:82–89  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

80
81
82class Component1(BaseComponent):
83 def do_a(self) -> None:
84 print("Component 1 does A.")
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

main.pyFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected