mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-08-09 05:42:12 -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
|
@ -119,7 +119,6 @@ class EventSearchInsertionTest(HomeserverTestCase):
|
|||
"content": {"msgtype": "m.text", "body": 2},
|
||||
"room_id": room_id,
|
||||
"sender": user_id,
|
||||
"depth": prev_event.depth + 1,
|
||||
"prev_events": prev_event_ids,
|
||||
"origin_server_ts": self.clock.time_msec(),
|
||||
}
|
||||
|
@ -134,7 +133,7 @@ class EventSearchInsertionTest(HomeserverTestCase):
|
|||
prev_state_map,
|
||||
for_verification=False,
|
||||
),
|
||||
depth=event_dict["depth"],
|
||||
depth=prev_event.depth + 1,
|
||||
)
|
||||
)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue