File tree Expand file tree Collapse file tree 2 files changed +7
-5
lines changed
Expand file tree Collapse file tree 2 files changed +7
-5
lines changed Original file line number Diff line number Diff line change 66import json
77import logging
88import sys
9- from typing import Any
109
1110import trio
1211from trio_websocket import open_websocket_url , ConnectionClosed
Original file line number Diff line number Diff line change 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
98101WS_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
619622def _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 )
625628async def test_handshake_exception_before_accept () -> None :
You can’t perform that action at this time.
0 commit comments