Skip to content

[Misc] Add missing return type annotations in outputs.py - #52145

Merged
DarkLight1337 merged 2 commits into
vllm-project:mainfrom
vineetatiwari27:misc/fix-outputs-return-type-annotations
Aug 13, 2026
Merged

DarkLight1337 merged 2 commits into
vllm-project:mainfrom
vineetatiwari27:misc/fix-outputs-return-type-annotations

Conversation

@vineetatiwari27

Copy link
Copy Markdown
Contributor

Purpose

Add missing return type annotations to from_base() static methods and PoolingRequestOutput.repr() in vllm/outputs.py.

All from_base() static methods on EmbeddingOutput, ClassificationOutput, ScoringOutput, EmbeddingRequestOutput, ClassificationRequestOutput, and ScoringRequestOutput lacked return type annotations.
PoolingRequestOutput.repr() was missing -> str, making it the only repr in the file without one — every other repr in the same file already has it.

No logic changes.

Test Plan

pre-commit run ruff-check --files vllm/outputs.py
pre-commit run mypy-3.10 --files vllm/outputs.py --hook-stage manual

Test Result

ruff check...........Passed
Run mypy for Python 3.10...........Passed

Signed-off-by: Vineeta Tiwari <vineeta.tiwari2@ibm.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.

@DarkLight1337 DarkLight1337 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Thanks

@DarkLight1337 DarkLight1337 added the verified Run pre-commit for new contributors without triggering other tests label Aug 13, 2026
@DarkLight1337
DarkLight1337 enabled auto-merge (squash) August 13, 2026 10:25
@github-actions github-actions Bot added the ready ONLY add when PR is ready to merge/full CI is needed label Aug 13, 2026
@hmellor

hmellor commented Aug 13, 2026

Copy link
Copy Markdown
Member

/ci run

@github-actions

Copy link
Copy Markdown

✅ Triggered Buildkite CI #83728 for commit d5a17e05172e.

@DarkLight1337
DarkLight1337 merged commit 015660d into vllm-project:main Aug 13, 2026
67 of 68 checks passed
zyp2014 pushed a commit to zyp2014/vllm that referenced this pull request Aug 21, 2026
…t#52145)

Signed-off-by: Vineeta Tiwari <vineeta.tiwari2@ibm.com>
Co-authored-by: Vineeta Tiwari <vineeta.tiwari2@ibm.com>
zufangzhu pushed a commit to zufangzhu/vllm that referenced this pull request Aug 24, 2026
…t#52145)

Signed-off-by: Vineeta Tiwari <vineeta.tiwari2@ibm.com>
Co-authored-by: Vineeta Tiwari <vineeta.tiwari2@ibm.com>
Signed-off-by: Zhu, Zufang <zufang.zhu@intel.com>
khushali9 pushed a commit to khushali9/vllm that referenced this pull request Aug 29, 2026
…t#52145)

Signed-off-by: Vineeta Tiwari <vineeta.tiwari2@ibm.com>
Co-authored-by: Vineeta Tiwari <vineeta.tiwari2@ibm.com>
Signed-off-by: khushali9 <khushali.desai9@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ready ONLY add when PR is ready to merge/full CI is needed verified Run pre-commit for new contributors without triggering other tests

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants