Skip to content

Commit

Permalink
Better type checking
Browse files Browse the repository at this point in the history
  • Loading branch information
felixdivo committed May 12, 2024
1 parent 073a640 commit b2f4f28
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ warn_unused_configs = true
module = [
"rclpy.*", # For the CI pipeline to work
"launch.*",
"launch_ros.*",
"std_msgs.*",
"action_msgs.*",
"example_interfaces.*",
Expand Down
1 change: 1 addition & 0 deletions ros2_easy_test/tests/example_nodes/run_node.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ def main(node_class: Type[Node]) -> None:
if spec is None:
raise RuntimeError(f"{file_path} is not a valid Python file.")
my_module = module_from_spec(spec)
assert spec.loader is not None, "spec.loader is None, this should not happen."
spec.loader.exec_module(my_module)
node_class = getattr(my_module, node_class_name)

Expand Down

0 comments on commit b2f4f28

Please sign in to comment.