mirror of
https://git.datalinker.icu/vllm-project/vllm.git
synced 2026-06-06 03:02:15 +08:00
[BugFix][Typing] Fix Imprecise Type Annotations (#15208)
Signed-off-by: Wang Ran (汪然) <wrran@outlook.com>
This commit is contained in:
parent
eb63ea1e18
commit
dd861b992f
@ -212,9 +212,9 @@ class BackgroundResources:
|
|||||||
"""Used as a finalizer for clean shutdown, avoiding
|
"""Used as a finalizer for clean shutdown, avoiding
|
||||||
circular reference back to the client object."""
|
circular reference back to the client object."""
|
||||||
|
|
||||||
ctx: Union[zmq.Context] = None
|
ctx: zmq.Context
|
||||||
output_socket: Union[zmq.Socket, zmq.asyncio.Socket] = None
|
output_socket: Optional[Union[zmq.Socket, zmq.asyncio.Socket]] = None
|
||||||
input_socket: Union[zmq.Socket, zmq.asyncio.Socket] = None
|
input_socket: Optional[Union[zmq.Socket, zmq.asyncio.Socket]] = None
|
||||||
proc_handle: Optional[BackgroundProcHandle] = None
|
proc_handle: Optional[BackgroundProcHandle] = None
|
||||||
shutdown_path: Optional[str] = None
|
shutdown_path: Optional[str] = None
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user