Skip to content

Commit a2f128f

Browse files
WrRanerictang000
authored andcommitted
[BugFix][Typing] Fix Imprecise Type Annotations (vllm-project#15208)
Signed-off-by: Wang Ran (汪然) <wrran@outlook.com>
1 parent a558d29 commit a2f128f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

vllm/v1/engine/core_client.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -212,9 +212,9 @@ class BackgroundResources:
212212
"""Used as a finalizer for clean shutdown, avoiding
213213
circular reference back to the client object."""
214214

215-
ctx: Union[zmq.Context] = None
216-
output_socket: Union[zmq.Socket, zmq.asyncio.Socket] = None
217-
input_socket: Union[zmq.Socket, zmq.asyncio.Socket] = None
215+
ctx: zmq.Context
216+
output_socket: Optional[Union[zmq.Socket, zmq.asyncio.Socket]] = None
217+
input_socket: Optional[Union[zmq.Socket, zmq.asyncio.Socket]] = None
218218
proc_handle: Optional[BackgroundProcHandle] = None
219219
shutdown_path: Optional[str] = None
220220

0 commit comments

Comments
 (0)