Update Optional[x] -> x | None and Union[x, y] to x | y#26633
Merged
simon-mo merged 33 commits intovllm-project:mainfrom Oct 12, 2025
Merged
Update Optional[x] -> x | None and Union[x, y] to x | y#26633simon-mo merged 33 commits intovllm-project:mainfrom
Optional[x] -> x | None and Union[x, y] to x | y#26633simon-mo merged 33 commits intovllm-project:mainfrom
Conversation
There are still some left so I have not updated the rules in `pyproject.toml` (I didn't have time to resolve them all). The follow up PR shouldn't take long or be too disruptive. Signed-off-by: Harry Mellor <19981378+hmellor@users.noreply.github.com>
Signed-off-by: Harry Mellor <19981378+hmellor@users.noreply.github.com>
Signed-off-by: Harry Mellor <19981378+hmellor@users.noreply.github.com>
Signed-off-by: Harry Mellor <19981378+hmellor@users.noreply.github.com>
Signed-off-by: Harry Mellor <19981378+hmellor@users.noreply.github.com>
5 tasks
Signed-off-by: Harry Mellor <19981378+hmellor@users.noreply.github.com>
Signed-off-by: Harry Mellor <19981378+hmellor@users.noreply.github.com>
Signed-off-by: Harry Mellor <19981378+hmellor@users.noreply.github.com>
Signed-off-by: Harry Mellor <19981378+hmellor@users.noreply.github.com>
Signed-off-by: Harry Mellor <19981378+hmellor@users.noreply.github.com>
…ecause it's not used for `|` Signed-off-by: Harry Mellor <19981378+hmellor@users.noreply.github.com>
Signed-off-by: Harry Mellor <19981378+hmellor@users.noreply.github.com>
Signed-off-by: Harry Mellor <19981378+hmellor@users.noreply.github.com>
Signed-off-by: Harry Mellor <19981378+hmellor@users.noreply.github.com>
Signed-off-by: Harry Mellor <19981378+hmellor@users.noreply.github.com>
Member
Author
|
There are lots of forward reference fixes because they were masked by |
Contributor
|
@hmellor just FYI I believe this PR missed some changes, pre-commit seems to be failing on main |
Member
Author
|
Thanks for letting me know. This can happen when making changes to |
Member
Author
|
Looks like someone beat me to it #26665 |
5 tasks
5 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Removes all
UPrule ignores frompyproject.tomlnow that we no longer support Python 3.9 #26247.This will be the last repo-wide formatting PR for a long time.
Thank you everyone for persevering with these changes. They will be good for the long-term health of the codebase.