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

Function client_code

src/Composite/Conceptual/main.py:164–171  ·  view source on GitHub ↗

EN: The client code works with all of the components via the base interface. RU: Клиентский код работает со всеми компонентами через базовый интерфейс.

(component: Component)

Source from the content-addressed store, hash-verified

162
163
164def client_code(component: Component) -> None:
165 """
166 EN: The client code works with all of the components via the base interface.
167
168 RU: Клиентский код работает со всеми компонентами через базовый интерфейс.
169 """
170
171 print(f"RESULT: {component.operation()}", end="")
172
173
174def client_code2(component1: Component, component2: Component) -> None:

Callers 1

main.pyFile · 0.70

Calls 1

operationMethod · 0.45

Tested by

no test coverage detected