mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-05-20 22:40:22 -04:00
Add missing type hints to tests.handlers. (#14680)
And do not allow untyped defs in tests.handlers.
This commit is contained in:
parent
54c012c5a8
commit
652d1669c5
22 changed files with 527 additions and 378 deletions
|
@ -199,7 +199,7 @@ class CasHandlerTestCase(HomeserverTestCase):
|
|||
)
|
||||
|
||||
|
||||
def _mock_request():
|
||||
def _mock_request() -> Mock:
|
||||
"""Returns a mock which will stand in as a SynapseRequest"""
|
||||
mock = Mock(
|
||||
spec=[
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue