Skip to content

fix: save_config, execute_command, and main are annotated as - #1

Open
andrewwhitecdw wants to merge 1 commit into
mainfrom
bugfix/bobber-noreturn-annotations-on-functions-that
Open

andrewwhitecdw wants to merge 1 commit into
mainfrom
bugfix/bobber-noreturn-annotations-on-functions-that

Conversation

@andrewwhitecdw

@andrewwhitecdw andrewwhitecdw commented Jul 30, 2026 •

Copy link
Copy Markdown
Owner

This PR addresses the following issue in bobber/bobber.py: save_config, execute_command, and main are annotated as.

Changes

  • bobber/bobber.py: save_config, execute_command, and main are annotated as.

Details

This change addresses in bobber/bobber.py: save_config, execute_command, and main are annotated as NoReturn even though they return normally to their callers, which misleads type checkers and callers; after correcting the annotations, the NoReturn import is unused..

Tests

  • tests/test_bobber_annotations.py

Contributor guidelines

Per this repo's CONTRIBUTING.md:

  • All commits are signed off (Signed-off-by trailer, DCO).

@andrewwhitecdw andrewwhitecdw added the sweep-approved Approved for upstream promotion by nvidia-sweep label Jul 30, 2026
Signed-off-by: andrewwhitecdw <andrewwhitecdw@users.noreply.github.com>
@andrewwhitecdw
andrewwhitecdw force-pushed the bugfix/bobber-noreturn-annotations-on-functions-that branch from 14f4733 to 7adddea Compare August 27, 2026 22:37
@andrewwhitecdw andrewwhitecdw changed the title fix: NoReturn annotations on functions that actually return fix: save_config, execute_command, and main are annotated as Aug 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

sweep-approved Approved for upstream promotion by nvidia-sweep

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant