Skip to content

[Test][Bugfix] Fix mypy error: missing enable_prompt_embeds arg in test_tp_sp_nvfp4_generation#42214

Closed
chfeng-cs wants to merge 1 commit into
vllm-project:mainfrom
chfeng-cs:fix_mypy-missing-enable-prompt-embeds-arg
Closed

[Test][Bugfix] Fix mypy error: missing enable_prompt_embeds arg in test_tp_sp_nvfp4_generation#42214
chfeng-cs wants to merge 1 commit into
vllm-project:mainfrom
chfeng-cs:fix_mypy-missing-enable-prompt-embeds-arg

Conversation

@chfeng-cs

@chfeng-cs chfeng-cs commented May 10, 2026

Copy link
Copy Markdown
Contributor

Purpose

Fix a mypy error introduced in #33322, which added the enable_prompt_embeds parameter to _compare_sp but missed updating one call site.

The call in test_tp_sp_nvfp4_generation (line 418) was left without the new required positional argument, causing CI mypy checks to fail across all Python
versions (3.10–3.13).

This PR adds enable_prompt_embeds=False to that call. False is correct here — this is a plain generation test with no multimodal prompt embeddings involved.

This is not a duplicate of any existing open PR.

Test Plan

mypy --python-version 3.10 --follow-imports skip tests
mypy --python-version 3.11 --follow-imports skip tests
mypy --python-version 3.12 --follow-imports skip tests
mypy --python-version 3.13 --follow-imports skip tests

Test Result

All four mypy invocations pass with no errors after the fix.


Essential Elements of an Effective PR Description Checklist
  • The purpose of the PR, such as "Fix some issue (link existing issues this PR will resolve)".
  • The test plan, such as providing test command.
  • The test results, such as pasting the results comparison before and after, or e2e results
  • (Optional) The necessary documentation update, such as updating supported_models.md and examples for a new model.

…p4_generation

tests/compile/correctness_e2e/test_sequence_parallel.py:418 was missing
the required positional argument `enable_prompt_embeds` in the call to
`_compare_sp`, causing mypy to fail across all Python versions in CI.

Signed-off-by: Ethan Feng <ethan.fengch@gmail.com>

@claude claude Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Claude Code Review

This pull request is from a fork — automated review is disabled. A repository maintainer can comment @claude review to run a one-time review.

@mergify mergify Bot added the bug Something isn't working label May 10, 2026

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request updates the test_tp_sp_nvfp4_generation test case in tests/compile/correctness_e2e/test_sequence_parallel.py by explicitly setting the enable_prompt_embeds parameter to False. There are no review comments to evaluate, and I have no further feedback to provide.

@chfeng-cs chfeng-cs changed the title [Test][Bugfix] Fix missing enable_prompt_embeds arg in test_tp_sp_nvf… [Test][Bugfix] Fix mypy error: missing enable_prompt_embeds arg in test_tp_sp_nvfp4_generation May 10, 2026

@noooop noooop left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks

@noooop noooop enabled auto-merge (squash) May 10, 2026 07:33
@github-actions github-actions Bot added the ready ONLY add when PR is ready to merge/full CI is needed label May 10, 2026
@noooop

noooop commented May 10, 2026

Copy link
Copy Markdown
Collaborator

prefer #42197

@noooop noooop closed this May 10, 2026
auto-merge was automatically disabled May 10, 2026 07:37

Pull request was closed

@chfeng-cs

Copy link
Copy Markdown
Contributor Author

Thanks for the clarification — understood that this is a duplicate

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working ready ONLY add when PR is ready to merge/full CI is needed

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants