We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 75faf7b commit 72e11c7Copy full SHA for 72e11c7
1 file changed
mirte_robot/robot.py
@@ -63,8 +63,10 @@ def get_instance(*args, **kwargs):
63
64
return get_instance
65
66
-# We should not decorate the class here with @singleton. That will
67
-# prevent sphinx autodoc from generating the docs for this class.
+# TODO: We should not decorate the class here with @singleton. That will
+# prevent sphinx autodoc from generating the docs for this class. But the
68
+# previous check did not work.
69
+@singleton
70
class Robot:
71
"""Robot API
72
@@ -890,5 +892,5 @@ def createRobot(
890
892
"""
891
893
894
global mirte
- mirte = singleton(Robot(machine_namespace, hardware_namespace))
895
+ mirte = Robot(machine_namespace, hardware_namespace)
896
return mirte
0 commit comments