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 1212
1313lint :
1414 $(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
1616
1717publish :
1818 rm -fr build dist .egg trio_websocket.egg-info
Original file line number Diff line number Diff line change 3232from __future__ import annotations
3333
3434from functools import partial , wraps
35+ import re
3536import ssl
3637import sys
3738from unittest .mock import patch
6869)
6970
7071if sys .version_info < (3 , 11 ):
71- from exceptiongroup import BaseExceptionGroup
72+ from exceptiongroup import BaseExceptionGroup # pylint: disable=redefined-builtin
7273
7374WS_PROTO_VERSION = tuple (map (int , wsproto .__version__ .split ('.' )))
7475
@@ -431,8 +432,7 @@ async def handler(request):
431432 assert header_value == b'My test header'
432433
433434def _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"
436436 return int (trio .__version__ [2 :4 ]) < 25
437437
438438@fail_after (1 )
@@ -459,7 +459,7 @@ async def handler(request):
459459 # 2. WebSocketServer.run
460460 # 3. trio.serve_listeners
461461 # 4. WebSocketServer._handle_connection
462- from trio .testing import RaisesGroup
462+ from trio .testing import RaisesGroup # pylint: disable=import-outside-toplevel
463463 assert RaisesGroup (
464464 RaisesGroup (
465465 RaisesGroup (
You can’t perform that action at this time.
0 commit comments