From 73c47eaa1f1a4d1714a733af620c632d197a798d Mon Sep 17 00:00:00 2001 From: Felix Divo Date: Sat, 4 Jan 2025 14:16:26 +0000 Subject: [PATCH] Also fix Environment doc --- doc/source/conf.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/doc/source/conf.py b/doc/source/conf.py index 4ab2148..0bebc0e 100644 --- a/doc/source/conf.py +++ b/doc/source/conf.py @@ -33,6 +33,13 @@ "action_msgs.msg", ]: sys.modules[module] = NonCallableMock() + + # This is needed for the autodoc to work (when inheriting from rclpy.node.Node) + class Node: + """Mocked Node class.""" + + sys.modules["rclpy.node"].Node = Node + else: del rclpy