We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 46929a8 commit 84ae12dCopy full SHA for 84ae12d
1 file changed
btpy/__init__.py
@@ -14,7 +14,7 @@
14
)
15
16
17
-def ports(inputs=[], outputs=[]):
+def ports(inputs: list[str] = [], outputs: list[str] = []):
18
"""Decorator to specify input and outputs ports for an action node."""
19
20
def specify_ports(cls):
@@ -41,11 +41,11 @@ class AsyncActionNode(StatefulActionNode):
41
def __init__(self, name, config):
42
super().__init__(name, config)
43
44
- def on_start(self):
+ def on_start(self) -> NodeStatus:
45
self.coroutine = self.run()
46
return NodeStatus.RUNNING
47
48
- def on_running(self):
+ def on_running(self) -> NodeStatus:
49
# The library logic should never allow this to happen, but users can
50
# still manually call `on_running` without an associated `on_start`
51
# call. Make sure to print a useful error when this happens.
0 commit comments