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

Class Subsystem2

src/Facade/Conceptual/main.py:85–98  ·  view source on GitHub ↗

EN: Some facades can work with multiple subsystems at the same time. RU: Некоторые фасады могут работать с разными подсистемами одновременно.

Source from the content-addressed store, hash-verified

83
84
85class Subsystem2:
86 """
87 EN: Some facades can work with multiple subsystems at the same time.
88
89 RU: Некоторые фасады могут работать с разными подсистемами одновременно.
90 """
91
92 def operation1(self) -> str:
93 return "Subsystem2: Get ready!"
94
95 # ...
96
97 def operation_z(self) -> str:
98 return "Subsystem2: Fire!"
99
100
101def client_code(facade: Facade) -> None:

Callers 2

__init__Method · 0.85
main.pyFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected