EN: The client code works with all of the components via the base interface. RU: Клиентский код работает со всеми компонентами через базовый интерфейс.
(component: Component)
| 162 | |
| 163 | |
| 164 | def 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 | |
| 174 | def client_code2(component1: Component, component2: Component) -> None: |