design-patterns/behavioral/mediator/mediator.py
Ruidy edcd5d35d7
Mediator (#18)
* doc: add documentation

* doc: edit general documentation

* add code example
2020-10-02 17:24:36 +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