design-patterns/behavioral/mediator/mediator.py
2020-10-02 17:22:49 +02:00

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