[BugFix][Typing] Fix Imprecise Type Annotations (#15208)
Signed-off-by: Wang Ran (汪然) <wrran@outlook.com>
This commit is contained in:
@@ -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
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user