File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change 12
12
13
13
lint :
14
14
$(PYTHON ) -m pylint trio_websocket/ tests/ autobahn/ examples/
15
- $(PYTHON ) -m mypy trio_websocket tests autobahn examples
15
+ $(PYTHON ) -m mypy --explicit-package-bases trio_websocket tests autobahn examples
16
16
17
17
publish :
18
18
rm -fr build dist .egg trio_websocket.egg-info
Original file line number Diff line number Diff line change 32
32
from __future__ import annotations
33
33
34
34
from functools import partial , wraps
35
+ import re
35
36
import ssl
36
37
import sys
37
38
from unittest .mock import patch
68
69
)
69
70
70
71
if sys .version_info < (3 , 11 ):
71
- from exceptiongroup import BaseExceptionGroup
72
+ from exceptiongroup import BaseExceptionGroup # pylint: disable=redefined-builtin
72
73
73
74
WS_PROTO_VERSION = tuple (map (int , wsproto .__version__ .split ('.' )))
74
75
@@ -431,8 +432,7 @@ async def handler(request):
431
432
assert header_value == b'My test header'
432
433
433
434
def _trio_default_loose () -> bool :
434
- import re
435
- assert re .match ('^0\.\d\d\.' , trio .__version__ ), "unexpected trio versioning scheme"
435
+ assert re .match (r'^0\.\d\d\.' , trio .__version__ ), "unexpected trio versioning scheme"
436
436
return int (trio .__version__ [2 :4 ]) < 25
437
437
438
438
@fail_after (1 )
@@ -459,7 +459,7 @@ async def handler(request):
459
459
# 2. WebSocketServer.run
460
460
# 3. trio.serve_listeners
461
461
# 4. WebSocketServer._handle_connection
462
- from trio .testing import RaisesGroup
462
+ from trio .testing import RaisesGroup # pylint: disable=import-outside-toplevel
463
463
assert RaisesGroup (
464
464
RaisesGroup (
465
465
RaisesGroup (
You can’t perform that action at this time.
0 commit comments