mirror of
https://github.com/tiqi-group/pydase.git
synced 2026-01-16 00:49:26 +01:00
feat: moving CallbackManager to new file, moving emit_notification to CallbackManager
This commit is contained in:
@@ -1,11 +1,12 @@
|
||||
from collections.abc import Generator
|
||||
from typing import Any
|
||||
from typing import Any, cast
|
||||
|
||||
import pytest
|
||||
from loguru import logger
|
||||
from pytest import LogCaptureFixture
|
||||
|
||||
from pyDataInterface import DataService
|
||||
from pyDataInterface.data_service.callback_manager import CallbackManager
|
||||
|
||||
|
||||
@pytest.fixture
|
||||
@@ -22,4 +23,4 @@ def emit(self: Any, parent_path: str, name: str, value: Any) -> None:
|
||||
print(f"{parent_path}.{name} = {value}")
|
||||
|
||||
|
||||
DataService._emit_notification = emit # type: ignore
|
||||
cast(CallbackManager, DataService._callback_manager).emit_notification = emit # type: ignore
|
||||
|
||||
Reference in New Issue
Block a user