Skip to content

Conversation

jaredoconnell
Copy link
Collaborator

Summary

This PR fixes all type errors in the utils package. Only a few were ignored.

Details

  • A lot of these changes are reflecting that values can be None, and the associated None checks.
  • Others are incorrect type annotations
  • Others are asserting with cast that we know for certain that the type is correct.
  • Plus other minor changes

Test Plan

Run the tests and look through the changes to make sure the logic is equivalent or better to the original code.


  • "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 ##)

Signed-off-by: Jared O'Connell <[email protected]>
Signed-off-by: Jared O'Connell <[email protected]>
Signed-off-by: Jared O'Connell <[email protected]>
@jaredoconnell jaredoconnell force-pushed the features/refactor-fix-util-types branch from a5fdee0 to db43ccd Compare October 8, 2025 14:28
self.buffer_receive_queue = culsans.Queue[ReceiveMessageT](
maxsize=self.max_buffer_receive_size or 0
)
self.tasks_lock = threading.Lock()
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

This was entirely unused. Is that a problem?

Copy link
Collaborator

Choose a reason for hiding this comment

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

Yeah I am guessing this is leftover from a previous version. cc: @markurtz

Copy link
Collaborator

@sjmonson sjmonson left a comment

Choose a reason for hiding this comment

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

Some changes needed. But mostly looks good.

self.buffer_receive_queue = culsans.Queue[ReceiveMessageT](
maxsize=self.max_buffer_receive_size or 0
)
self.tasks_lock = threading.Lock()
Copy link
Collaborator

Choose a reason for hiding this comment

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

Yeah I am guessing this is leftover from a previous version. cc: @markurtz

Co-authored-by: Samuel Monson <[email protected]>
Signed-off-by: Jared O'Connell <[email protected]>
@jaredoconnell jaredoconnell merged commit 538c194 into vllm-project:features/refactor/base Oct 9, 2025
8 of 17 checks passed
@jaredoconnell jaredoconnell deleted the features/refactor-fix-util-types branch October 9, 2025 19:05
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.

2 participants