Skip to content

fix(lingbot): drop undefined name from runtime __all__ - #505

Draft
rootkiller6788 wants to merge 1 commit into
NVIDIA:mainfrom
rootkiller6788:fix/lingbot-undefined-all-export
Draft

fix(lingbot): drop undefined name from runtime __all__#505
rootkiller6788 wants to merge 1 commit into
NVIDIA:mainfrom
rootkiller6788:fix/lingbot-undefined-all-export

Conversation

@rootkiller6788

Copy link
Copy Markdown

What

integrations/lingbot/lingbot/runtime.py declares "replay_inputs_from_inference_input" in __all__, but the module (and the whole repo) never defines that name — the implemented conversion is inference_input_from_replay_inputs, the opposite direction.

Why it matters

from lingbot.runtime import * iterates __all__ and raises AttributeError: module 'lingbot.runtime' has no attribute 'replay_inputs_from_inference_input' on the first missing name. The dangling entry also fails pyflakes (undefined name ... in __all__) and ruff's F822, so lint breaks on the file. LingbotReplayInputs requires camera_poses_path/camera_intrinsics_path that InferenceInput never carries, so a faithful inverse cannot be implemented — the entry is simply stale.

Changes

  • Remove the undefined replay_inputs_from_inference_input entry from __all__.
  • Add integrations/lingbot/tests/test_runtime_public_api.py (ci_cpu) asserting every __all__ name resolves on the module, guarding against future drift.

Verification

  • python -m pyflakes integrations/lingbot/lingbot/runtime.py no longer reports undefined name 'replay_inputs_from_inference_input' in __all__.
  • Confirmed the name is absent from every other module in the repo and from docs.
  • Reproduced the failure mode: a module whose __all__ lists an undefined name fails from <mod> import * with AttributeError.

__all__ listed replay_inputs_from_inference_input, but the module never
defined it (only the inverse inference_input_from_replay_inputs exists).
from lingbot.runtime import * would fail with AttributeError on the
missing export. Remove the dangling entry and add a regression test that
asserts every __all__ name is defined.
@copy-pr-bot

copy-pr-bot Bot commented Aug 22, 2026

Copy link
Copy Markdown

This pull request requires additional validation before any workflows can run on NVIDIA's runners.

Pull request vetters can view their responsibilities here.

Contributors can view more details about this message here.

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