Skip to content

Commit

Permalink
Also fix Environment doc
Browse files Browse the repository at this point in the history
  • Loading branch information
felixdivo committed Jan 4, 2025
1 parent fef107f commit 73c47ea
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions doc/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 73c47ea

Please sign in to comment.