mirror of
https://github.com/akuker/RASCSI.git
synced 2024-05-28 09:41:33 +00:00
315ef9f248
* Update config for black and flake8 * Auto-format Python sources with black * Fix issues reported by flake8 * Exclude protobuf files from black * Address formatting feedback
12 lines
371 B
Python
12 lines
371 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."""
|