mirror of
https://github.com/rjNemo/design-patterns
synced 2026-06-06 02:26:40 +00:00
12 lines
331 B
Python
12 lines
331 B
Python
from abc import ABC
|
|
|
|
|
|
class Mediator(ABC):
|
|
"""
|
|
The Mediator interface declares a method used by components to notify the
|
|
mediator about various events. The Mediator may react to these events and
|
|
pass the execution to other components.
|
|
"""
|
|
|
|
def notify(self, sender: object, event: str) -> None:
|
|
pass
|