mirror of
https://github.com/norohind/jubilant-system-core.git
synced 2025-04-15 02:40:34 +03:00
12 lines
330 B
Python
12 lines
330 B
Python
from abc import ABC, abstractmethod
|
|
|
|
|
|
class Hook(ABC): # See at Hook class as to observer in observer pattern
|
|
"""
|
|
In order to implement hook, subclass this class and pass instance to HookSystem.add_hook
|
|
"""
|
|
|
|
@abstractmethod
|
|
def update(self, operation_id: int) -> None:
|
|
raise NotImplemented
|