mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-08-14 04:35:26 -04:00
Add final type hint to tests.unittest. (#15072)
Adds a return type to HomeServerTestCase.make_homeserver and deal with any variables which are no longer Any.
This commit is contained in:
parent
119e0795a5
commit
42aea0d8af
55 changed files with 433 additions and 320 deletions
|
@ -852,7 +852,7 @@ class PasswordAuthProviderTests(unittest.HomeserverTestCase):
|
|||
username: The username to use for the test.
|
||||
registration: Whether to test with registration URLs.
|
||||
"""
|
||||
self.hs.get_identity_handler().send_threepid_validation = Mock(
|
||||
self.hs.get_identity_handler().send_threepid_validation = Mock( # type: ignore[assignment]
|
||||
return_value=make_awaitable(0),
|
||||
)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue