mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-08-12 22:15:25 -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
|
@ -178,7 +178,7 @@ class FederationClientTest(FederatingHomeserverTestCase):
|
|||
RoomVersions.V9,
|
||||
)
|
||||
)
|
||||
self.assertIsNotNone(pulled_pdu_info2)
|
||||
assert pulled_pdu_info2 is not None
|
||||
remote_pdu2 = pulled_pdu_info2.pdu
|
||||
|
||||
# Sanity check that we are working against the same event
|
||||
|
@ -226,7 +226,7 @@ class FederationClientTest(FederatingHomeserverTestCase):
|
|||
RoomVersions.V9,
|
||||
)
|
||||
)
|
||||
self.assertIsNotNone(pulled_pdu_info)
|
||||
assert pulled_pdu_info is not None
|
||||
remote_pdu = pulled_pdu_info.pdu
|
||||
|
||||
# check the right call got made to the agent
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue