removes start_task wrapper

This commit is contained in:
Mose Müller 2023-12-21 11:00:19 +01:00
parent 6543bc6b39
commit fea96c044c

View File

@ -3,7 +3,6 @@ from __future__ import annotations
import asyncio import asyncio
import inspect import inspect
import logging import logging
from functools import wraps
from typing import TYPE_CHECKING, Any, TypedDict from typing import TYPE_CHECKING, Any, TypedDict
from pydase.data_service.abstract_data_service import AbstractDataService from pydase.data_service.abstract_data_service import AbstractDataService
@ -154,7 +153,6 @@ class TaskManager:
method (callable): The coroutine to be turned into an asyncio task. method (callable): The coroutine to be turned into an asyncio task.
""" """
@wraps(method)
def start_task(*args: Any, **kwargs: Any) -> None: def start_task(*args: Any, **kwargs: Any) -> None:
def task_done_callback(task: asyncio.Task[None], name: str) -> None: def task_done_callback(task: asyncio.Task[None], name: str) -> None:
"""Handles tasks that have finished. """Handles tasks that have finished.