Skip to content

Fix per file ruff ignores related to typing#26254

Merged
DarkLight1337 merged 1 commit intovllm-project:mainfrom
hmellor:fix-ruff-typing-ignores
Oct 5, 2025
Merged

Fix per file ruff ignores related to typing#26254
DarkLight1337 merged 1 commit intovllm-project:mainfrom
hmellor:fix-ruff-typing-ignores

Conversation

@hmellor
Copy link
Copy Markdown
Member

@hmellor hmellor commented Oct 5, 2025

Forward fixes some of the issues skipped by #26247

Signed-off-by: Harry Mellor <19981378+hmellor@users.noreply.github.com>
@github-project-automation github-project-automation bot moved this from To Triage to Ready in gpt-oss Issues & Enhancements Oct 5, 2025
@DarkLight1337 DarkLight1337 enabled auto-merge (squash) October 5, 2025 14:49
@github-actions github-actions bot added the ready ONLY add when PR is ready to merge/full CI is needed label Oct 5, 2025
Copy link
Copy Markdown
Contributor

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

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 does a great job of cleaning up typing-related linting issues by removing many per-file ruff ignores and applying the corresponding fixes. The changes modernize the type hints, which improves code clarity and maintainability. However, I noticed that the modernization from Optional[X] to X | None (as per PEP 604) has been applied inconsistently across the codebase. Some files have been updated, while others that were part of this cleanup still use the older Optional syntax. To ensure consistency, I've added several suggestions to apply this modern typing style throughout the changed files. Addressing these will make the codebase more uniform and easier to maintain.

@hmellor
Copy link
Copy Markdown
Member Author

hmellor commented Oct 5, 2025

Gemini is wrong, the files where | was added had from __future__ import annotations, so we can do this. Other files which do not cannot be updated until we drop Python 3.9.

@DarkLight1337 DarkLight1337 merged commit 1c0c682 into vllm-project:main Oct 5, 2025
64 of 67 checks passed
@hmellor hmellor deleted the fix-ruff-typing-ignores branch October 5, 2025 16:38
tomeras91 pushed a commit to tomeras91/vllm that referenced this pull request Oct 6, 2025
Signed-off-by: Harry Mellor <19981378+hmellor@users.noreply.github.com>
Signed-off-by: Tomer Asida <57313761+tomeras91@users.noreply.github.com>
karan pushed a commit to karan/vllm that referenced this pull request Oct 6, 2025
Signed-off-by: Harry Mellor <19981378+hmellor@users.noreply.github.com>
Signed-off-by: Karan Goel <3261985+karan@users.noreply.github.com>
lywa1998 pushed a commit to lywa1998/vllm that referenced this pull request Oct 20, 2025
Signed-off-by: Harry Mellor <19981378+hmellor@users.noreply.github.com>
alhridoy pushed a commit to alhridoy/vllm that referenced this pull request Oct 24, 2025
Signed-off-by: Harry Mellor <19981378+hmellor@users.noreply.github.com>
rtourgeman pushed a commit to rtourgeman/vllm that referenced this pull request Nov 10, 2025
Signed-off-by: Harry Mellor <19981378+hmellor@users.noreply.github.com>
devpatelio pushed a commit to SumanthRH/vllm that referenced this pull request Nov 29, 2025
Signed-off-by: Harry Mellor <19981378+hmellor@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

frontend gpt-oss Related to GPT-OSS models multi-modality Related to multi-modality (#4194) ready ONLY add when PR is ready to merge/full CI is needed structured-output v1

Projects

Status: Done
Status: Done

Development

Successfully merging this pull request may close these issues.

2 participants