mirror of
https://github.com/akuker/RASCSI.git
synced 2024-06-28 05:29:33 +00:00
11 lines
370 B
Python
11 lines
370 B
Python
"""Module implementing the Observer part of the Observer pattern"""
|
|
from abc import ABC, abstractmethod
|
|
|
|
|
|
# pylint: disable=too-few-public-methods
|
|
class Observer(ABC):
|
|
"""Class implementing an abserver"""
|
|
@abstractmethod
|
|
def update(self, updated_object) -> None:
|
|
"""Abstract method for updating an observer. Needs to be implemented by subclasses."""
|