-
-
Notifications
You must be signed in to change notification settings - Fork 11.3k
[BugFix][Typing] Fix Imprecise Type Annotations #15208
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -212,9 +212,9 @@ class BackgroundResources: | |
| """Used as a finalizer for clean shutdown, avoiding | ||
| circular reference back to the client object.""" | ||
|
|
||
| ctx: Union[zmq.Context] = None | ||
|
||
| output_socket: Union[zmq.Socket, zmq.asyncio.Socket] = None | ||
| input_socket: Union[zmq.Socket, zmq.asyncio.Socket] = None | ||
| ctx: zmq.Context | ||
| output_socket: Optional[Union[zmq.Socket, zmq.asyncio.Socket]] = None | ||
| input_socket: Optional[Union[zmq.Socket, zmq.asyncio.Socket]] = None | ||
| proc_handle: Optional[BackgroundProcHandle] = None | ||
| shutdown_path: Optional[str] = None | ||
|
|
||
|
|
||

There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ctxmust be set, or line-235 will fail becausectx is None.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I checked the codebase. The
BackgroundResourcesis only used byvllm/vllm/v1/engine/core_client.py
Line 293 in e3f813c
So it is ok to remove the defaults.