mirror of
https://github.com/akuker/RASCSI.git
synced 2025-01-08 03:29:51 +00:00
cd0da558c3
Initial version of the Control Board UI (#687)
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."""
|