File tree Expand file tree Collapse file tree 4 files changed +4
-6
lines changed Expand file tree Collapse file tree 4 files changed +4
-6
lines changed Original file line number Diff line number Diff line change 1818from textual .constants import DEVTOOLS_PORT
1919
2020READY_TIMEOUT = 0.5
21- WEBSOCKET_CONNECT_TIMEOUT = 3
2221LOG_QUEUE_MAXSIZE = 512
2322
2423
@@ -116,8 +115,7 @@ async def connect(self) -> None:
116115 self .log_queue = Queue (maxsize = LOG_QUEUE_MAXSIZE )
117116 try :
118117 self .websocket = await self .session .ws_connect (
119- f"{ self .url } /textual-devtools-websocket" ,
120- timeout = WEBSOCKET_CONNECT_TIMEOUT ,
118+ f"{ self .url } /textual-devtools-websocket"
121119 )
122120 except (ClientConnectorError , ClientResponseError ):
123121 raise DevtoolsConnectionError ()
Original file line number Diff line number Diff line change 66
77
88@pytest .fixture
9- async def server (aiohttp_server , unused_tcp_port ):
9+ async def server (aiohttp_server , unused_tcp_port ) -> None :
1010 app = _make_devtools_aiohttp_app (
1111 size_change_poll_delay_secs = 0.001 ,
1212 )
Original file line number Diff line number Diff line change @@ -32,7 +32,7 @@ def console():
3232
3333
3434@time_machine .travel (TIMESTAMP )
35- def test_log_message_render (console ):
35+ def test_log_message_render (console ) -> None :
3636 message = DevConsoleLog (
3737 [Segment ("content" )],
3838 path = "abc/hello.py" ,
Original file line number Diff line number Diff line change @@ -85,7 +85,7 @@ async def test_devtools_log_spillover(devtools):
8585 }
8686
8787
88- async def test_devtools_client_update_console_dimensions (devtools , server ):
88+ async def test_devtools_client_update_console_dimensions (devtools , server ) -> None :
8989 """Sending new server info through websocket from server to client should (eventually)
9090 result in the dimensions of the devtools client console being updated to match.
9191 """
You can’t perform that action at this time.
0 commit comments