Skip to content

Commit

Permalink
another fix
Browse files Browse the repository at this point in the history
  • Loading branch information
blink1073 committed Nov 7, 2023
1 parent abedfa5 commit ffc71ca
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion jupyter_server/gateway/connections.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ async def connect(self):
kwargs = GatewayClient.instance().load_connection_args(**kwargs)

request = HTTPRequest(ws_url, **kwargs)
self.ws_future = cast(Future[Any], tornado_websocket.websocket_connect(request))
self.ws_future = cast("Future[Any]", tornado_websocket.websocket_connect(request))
self.ws_future.add_done_callback(self._connection_done)

loop = IOLoop.current()
Expand Down
2 changes: 1 addition & 1 deletion jupyter_server/gateway/handlers.py
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ async def _connect(self, kernel_id, message_callback):
kwargs = client.load_connection_args(**kwargs)

request = HTTPRequest(ws_url, **kwargs)
self.ws_future = cast(Future[Any], websocket_connect(request))
self.ws_future = cast("Future[Any]", websocket_connect(request))
self.ws_future.add_done_callback(self._connection_done)

loop = IOLoop.current()
Expand Down

0 comments on commit ffc71ca

Please sign in to comment.