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

Class Component

src/Decorator/Conceptual/main.py:14–24  ·  view source on GitHub ↗

EN: The base Component interface defines operations that can be altered by decorators. RU: Базовый интерфейс Компонента определяет поведение, которое изменяется декораторами.

Source from the content-addressed store, hash-verified

12
13
14class Component():
15 """
16 EN: The base Component interface defines operations that can be altered by
17 decorators.
18
19 RU: Базовый интерфейс Компонента определяет поведение, которое изменяется
20 декораторами.
21 """
22
23 def operation(self) -> str:
24 pass
25
26
27class ConcreteComponent(Component):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected