From 91f90c86306a0cfe30289901c4e3cd5da967435c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adolfo=20G=C3=B3mez=20Garc=C3=ADa?= Date: Sun, 18 Jul 2021 15:45:03 +0200 Subject: [PATCH] Small sample fix --- server/src/uds/services/Sample/deployment_one.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/server/src/uds/services/Sample/deployment_one.py b/server/src/uds/services/Sample/deployment_one.py index 0442ed9f..6d328ce2 100644 --- a/server/src/uds/services/Sample/deployment_one.py +++ b/server/src/uds/services/Sample/deployment_one.py @@ -36,6 +36,8 @@ import typing from uds.core import services from uds.core.util.state import State +from . import service as sample_service + # Not imported at runtime, just for type checking if typing.TYPE_CHECKING: from uds import models @@ -78,6 +80,9 @@ class SampleUserDeploymentOne(services.UserDeployment): # : Recheck every five seconds by default (for task methods) suggestedTime = 5 + def service(self) -> 'sample_service.ServiceOne': + return typing.cast('sample_service.ServiceOne', super().service()) + # Serializable needed methods def marshal(self) -> bytes: """