This repository was archived by the owner on Apr 26, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 5 files changed +95
-64
lines changed
Expand file tree Collapse file tree 5 files changed +95
-64
lines changed Original file line number Diff line number Diff line change 1+ Add missing type hints.
Original file line number Diff line number Diff line change @@ -36,7 +36,6 @@ exclude = (?x)
3636 |tests/api/test_ratelimiting.py
3737 |tests/app/test_openid_listener.py
3838 |tests/appservice/test_scheduler.py
39- |tests/crypto/test_keyring.py
4039 |tests/events/test_presence_router.py
4140 |tests/events/test_utils.py
4241 |tests/federation/test_federation_catch_up.py
@@ -90,13 +89,16 @@ disallow_untyped_defs = False
9089[mypy-tests.config.*]
9190disallow_untyped_defs = True
9291
92+ [mypy-tests.crypto.*]
93+ disallow_untyped_defs = True
94+
9395[mypy-tests.federation.transport.test_client]
9496disallow_untyped_defs = True
9597
9698[mypy-tests.handlers.*]
9799disallow_untyped_defs = True
98100
99- [mypy-tests.metrics.test_background_process_metrics ]
101+ [mypy-tests.metrics.* ]
100102disallow_untyped_defs = True
101103
102104[mypy-tests.push.test_bulk_push_rule_evaluator]
Original file line number Diff line number Diff line change 3333
3434
3535class EventSigningTestCase (unittest .TestCase ):
36- def setUp (self ):
36+ def setUp (self ) -> None :
3737 self .signing_key : SigningKey = decode_signing_key_base64 (
3838 KEY_ALG , KEY_VER , SIGNING_KEY_SEED
3939 )
4040
41- def test_sign_minimal (self ):
41+ def test_sign_minimal (self ) -> None :
4242 event_dict = {
4343 "event_id" : "$0:domain" ,
4444 "origin" : "domain" ,
@@ -69,7 +69,7 @@ def test_sign_minimal(self):
6969 "aIbygsSdLOFzvdDjww8zUVKCmI02eP9xtyJxc/cLiBA" ,
7070 )
7171
72- def test_sign_message (self ):
72+ def test_sign_message (self ) -> None :
7373 event_dict = {
7474 "content" : {"body" : "Here is the message content" },
7575 "event_id" : "$0:domain" ,
You can’t perform that action at this time.
0 commit comments