Skip to content

Conversation

jaredoconnell
Copy link
Collaborator

@jaredoconnell jaredoconnell commented Oct 10, 2025

Summary

This fixes quality errors in the code.

Details

The recent switch to Python 3.10 means that the linter can apply 3.10 specific linters, so this fixes errors that occur now that backwards compatibility is no longer required. The biggest change is the switch from explicit Union references to |.

I also took advantage of the version change to use match.

Also, it appears that the from __future__ import annotations lines are masking a lot of circular imports. So I can't remove those yet.

Test Plan

Run GuideLLM as normal, make sure the tests pass, and confirm that there are no more quality errors.


  • "I certify that all code in this PR is my own, except as noted below."

Use of AI

  • Includes AI-assisted code completion
  • Includes code generated by an AI application
  • Includes AI-generated tests (NOTE: AI written tests should have a docstring that includes ## WRITTEN BY AI ##)

Many of the quality errors are due to using the older union style, and have appeared due to the upgrade of the minimum Python version from 3.9 to 3.10

Signed-off-by: Jared O'Connell <joconnel@redhat.com>
Signed-off-by: Jared O'Connell <joconnel@redhat.com>
Signed-off-by: Jared O'Connell <joconnel@redhat.com>
@jaredoconnell jaredoconnell marked this pull request as draft October 10, 2025 15:02
sjmonson added a commit that referenced this pull request Oct 10, 2025
features/refactor/quality-fixes
Signed-off-by: Jared O'Connell <joconnel@redhat.com>
@jaredoconnell jaredoconnell marked this pull request as ready for review October 10, 2025 17:08
@jaredoconnell jaredoconnell merged commit 8f6fdfa into vllm-project:features/refactor/base Oct 10, 2025
11 of 17 checks passed
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.

3 participants