Skip to content

Commit 96e437f

Browse files
committed
Fix lint issues
1 parent e98f233 commit 96e437f

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed

autobahn/client.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
import json
77
import logging
88
import sys
9-
from typing import Any
109

1110
import trio
1211
from trio_websocket import open_websocket_url, ConnectionClosed

tests/test_connection.py

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,10 @@
9393
from typing_extensions import ParamSpec, TypeAlias
9494
PS = ParamSpec("PS")
9595

96-
StapledMemoryStream: TypeAlias = trio.StapledStream[trio.testing.MemorySendStream, trio.testing.MemoryReceiveStream]
96+
StapledMemoryStream: TypeAlias = trio.StapledStream[
97+
trio.testing.MemorySendStream,
98+
trio.testing.MemoryReceiveStream,
99+
]
97100

98101
WS_PROTO_VERSION = tuple(map(int, wsproto.__version__.split('.')))
99102

@@ -617,9 +620,9 @@ async def handler(request: WebSocketRequest) -> None:
617620
assert exc_info.value.__context__ is user_cancelled_context
618621

619622
def _trio_default_non_strict_exception_groups() -> bool:
620-
version = version("trio")
621-
assert re.match(r'^0\.\d\d\.', version), "unexpected trio versioning scheme"
622-
return int(version[2:4]) < 25
623+
trio_version = version("trio")
624+
assert re.match(r'^0\.\d\d\.', trio_version), "unexpected trio versioning scheme"
625+
return int(trio_version[2:4]) < 25
623626

624627
@fail_after(1)
625628
async def test_handshake_exception_before_accept() -> None:

0 commit comments

Comments
 (0)