Small sample fix

This commit is contained in:
Adolfo Gómez García 2021-07-18 15:45:03 +02:00
parent ca5b54c8e2
commit 91f90c8630

View File

@ -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:
"""