updates DataService import to avoid circular import

This commit is contained in:
Mose Müller 2024-08-06 10:41:09 +02:00
parent 083fab0a29
commit 85d6229aa6

View File

@ -12,7 +12,7 @@ from typing import (
from typing_extensions import TypeIs from typing_extensions import TypeIs
import pydase import pydase.data_service.data_service
from pydase.utils.helpers import current_event_loop_exists from pydase.utils.helpers import current_event_loop_exists
logging.basicConfig(level=logging.DEBUG) logging.basicConfig(level=logging.DEBUG)
@ -34,7 +34,7 @@ class TaskStatus(Enum):
NOT_RUNNING = "not_running" NOT_RUNNING = "not_running"
class Task(pydase.DataService, Generic[R]): class Task(pydase.data_service.data_service.DataService, Generic[R]):
def __init__( def __init__(
self, self,
func: Callable[[Any], Coroutine[None, None, R | None]] func: Callable[[Any], Coroutine[None, None, R | None]]