mirror of
https://github.com/tiqi-group/pydase.git
synced 2025-04-21 00:40:01 +02:00
creating AbstractDataService class
This is needed to split the CallbackManager into another class.
This commit is contained in:
parent
4265929b4e
commit
2632e7ba6e
14
src/pyDataInterface/data_service/abstract_data_service.py
Normal file
14
src/pyDataInterface/data_service/abstract_data_service.py
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
from abc import ABC
|
||||||
|
from collections.abc import Callable
|
||||||
|
from typing import Any
|
||||||
|
|
||||||
|
|
||||||
|
class AbstractDataService(ABC):
|
||||||
|
__root__: "AbstractDataService"
|
||||||
|
_callback_manager: Any
|
||||||
|
"""
|
||||||
|
This is a CallbackManager. Cannot type this here as this would lead to a recursive
|
||||||
|
loop.
|
||||||
|
"""
|
||||||
|
|
||||||
|
_task_status_change_callbacks: list[Callable[[str, dict[str, Any] | None], None]]
|
Loading…
x
Reference in New Issue
Block a user