File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 14
14
)
15
15
16
16
17
- def ports (inputs = [], outputs = []):
17
+ def ports (inputs : list [ str ] = [], outputs : list [ str ] = []):
18
18
"""Decorator to specify input and outputs ports for an action node."""
19
19
20
20
def specify_ports (cls ):
@@ -41,11 +41,11 @@ class AsyncActionNode(StatefulActionNode):
41
41
def __init__ (self , name , config ):
42
42
super ().__init__ (name , config )
43
43
44
- def on_start (self ):
44
+ def on_start (self ) -> NodeStatus :
45
45
self .coroutine = self .run ()
46
46
return NodeStatus .RUNNING
47
47
48
- def on_running (self ):
48
+ def on_running (self ) -> NodeStatus :
49
49
# The library logic should never allow this to happen, but users can
50
50
# still manually call `on_running` without an associated `on_start`
51
51
# call. Make sure to print a useful error when this happens.
You can’t perform that action at this time.
0 commit comments