Skip to content

Expose runtime exports to type checkers#207

Closed
ethayu wants to merge 1 commit into
mainfrom
user/ethayu/workspace-pylance-runtime-exports
Closed

Expose runtime exports to type checkers#207
ethayu wants to merge 1 commit into
mainfrom
user/ethayu/workspace-pylance-runtime-exports

Conversation

@ethayu

@ethayu ethayu commented May 27, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • Add TYPE_CHECKING imports for lazy uav.runtime exports.
  • Preserve runtime lazy loading through __getattr__.
  • Clear Pyright/Pylance reportUnsupportedDunderAll warnings for the runtime package initializer.

Verification

  • source /opt/ros/humble/setup.bash && export PYTHONPATH=$PWD/controls/sae_2025_ws/src/uav:$PYTHONPATH && npx --yes pyright controls/sae_2025_ws/src/uav/uav/runtime/__init__.py --outputjson
  • python3 -m compileall controls/sae_2025_ws/src/uav/uav/runtime/__init__.py
  • ruff check controls/sae_2025_ws/src/uav/uav/runtime/__init__.py
  • ruff format --check controls/sae_2025_ws/src/uav/uav/runtime/__init__.py

Refs #206
Part of #201

@ethayu

ethayu commented May 27, 2026

Copy link
Copy Markdown
Collaborator Author

Condensed into #205 so the UAV and runtime export-surface typing changes review together. #205 now fixes #204 and #206.

@ethayu ethayu closed this May 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant