forked from shaba/openuds
Small sample fix
This commit is contained in:
parent
ca5b54c8e2
commit
91f90c8630
@ -36,6 +36,8 @@ import typing
|
|||||||
from uds.core import services
|
from uds.core import services
|
||||||
from uds.core.util.state import State
|
from uds.core.util.state import State
|
||||||
|
|
||||||
|
from . import service as sample_service
|
||||||
|
|
||||||
# Not imported at runtime, just for type checking
|
# Not imported at runtime, just for type checking
|
||||||
if typing.TYPE_CHECKING:
|
if typing.TYPE_CHECKING:
|
||||||
from uds import models
|
from uds import models
|
||||||
@ -78,6 +80,9 @@ class SampleUserDeploymentOne(services.UserDeployment):
|
|||||||
# : Recheck every five seconds by default (for task methods)
|
# : Recheck every five seconds by default (for task methods)
|
||||||
suggestedTime = 5
|
suggestedTime = 5
|
||||||
|
|
||||||
|
def service(self) -> 'sample_service.ServiceOne':
|
||||||
|
return typing.cast('sample_service.ServiceOne', super().service())
|
||||||
|
|
||||||
# Serializable needed methods
|
# Serializable needed methods
|
||||||
def marshal(self) -> bytes:
|
def marshal(self) -> bytes:
|
||||||
"""
|
"""
|
||||||
|
Loading…
x
Reference in New Issue
Block a user