Skip to content

fix: correct return type annotation of get_nsys_entrypoint#568

Open
andrewwhitecdw wants to merge 1 commit into
NVIDIA-NeMo:mainfrom
andrewwhitecdw:andrewwhitecdw/fix/get-nsys-entrypoint-return-type
Open

fix: correct return type annotation of get_nsys_entrypoint#568
andrewwhitecdw wants to merge 1 commit into
NVIDIA-NeMo:mainfrom
andrewwhitecdw:andrewwhitecdw/fix/get-nsys-entrypoint-return-type

Conversation

@andrewwhitecdw

Copy link
Copy Markdown

Bug

get_nsys_entrypoint returns a tuple ("nsys", ""), but its annotation was str. This mismatched the implementation and callers that unpack the result.

Fix

Update the return type annotation to tuple[str, str].

Test

The existing TestExecutor::test_get_nsys_entrypoint already asserts the tuple return value.

Verification

uv run pytest test/core/execution/test_base.py::TestExecutor::test_get_nsys_entrypoint -v passes. uv run --group lint ruff check ... and ruff format --check ... pass.

get_nsys_entrypoint returns a tuple (nsys, ), but its annotation was str.

Update the annotation to tuple[str, str] to match the implementation and

callers that unpack the result.

Signed-off-by: Andrew White <andrewh@cdw.com>
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