Unverified Commit dd861b99 authored by Wang Ran (汪然)'s avatar Wang Ran (汪然) Committed by GitHub
Browse files

[BugFix][Typing] Fix Imprecise Type Annotations (#15208)


Signed-off-by: default avatarWang Ran (汪然) <wrran@outlook.com>
parent eb63ea1e
...@@ -212,9 +212,9 @@ class BackgroundResources: ...@@ -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
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment