Skip to content

Commit 3d121c4

Browse files
committed
mypy complaints
1 parent 73be24a commit 3d121c4

File tree

4 files changed

+4
-6
lines changed

4 files changed

+4
-6
lines changed

src/textual_dev/client.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@
1818
from textual.constants import DEVTOOLS_PORT
1919

2020
READY_TIMEOUT = 0.5
21-
WEBSOCKET_CONNECT_TIMEOUT = 3
2221
LOG_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()

tests/devtools/conftest.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
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
)

tests/devtools/test_devtools.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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",

tests/devtools/test_devtools_client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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
"""

0 commit comments

Comments
 (0)