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 6
6
import json
7
7
import logging
8
8
import sys
9
- from typing import Any
10
9
11
10
import trio
12
11
from trio_websocket import open_websocket_url , ConnectionClosed
Original file line number Diff line number Diff line change 93
93
from typing_extensions import ParamSpec , TypeAlias
94
94
PS = ParamSpec ("PS" )
95
95
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
+ ]
97
100
98
101
WS_PROTO_VERSION = tuple (map (int , wsproto .__version__ .split ('.' )))
99
102
@@ -617,9 +620,9 @@ async def handler(request: WebSocketRequest) -> None:
617
620
assert exc_info .value .__context__ is user_cancelled_context
618
621
619
622
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
623
626
624
627
@fail_after (1 )
625
628
async def test_handshake_exception_before_accept () -> None :
You can’t perform that action at this time.
0 commit comments