test_retention: Add type annotation for expected_result

Otherwise mypy infers the type of `expected_result` to be incompatible
with the first argument of `fix_ordering_of_result`.

Signed-off-by: Zixuan James Li <p359101898@gmail.com>
This commit is contained in:
Zixuan James Li 2022-07-06 00:58:43 -04:00 committed by Tim Abbott
parent e665ec8ae2
commit c5075be9aa
1 changed files with 1 additions and 1 deletions

View File

@ -976,7 +976,7 @@ class TestGetRealmAndStreamsForArchiving(ZulipTestCase):
# so we use a helper to order both structures in a consistent manner. This wouldn't be necessary # so we use a helper to order both structures in a consistent manner. This wouldn't be necessary
# if python had a true "unordered list" data structure. Set doesn't do the job, because it requires # if python had a true "unordered list" data structure. Set doesn't do the job, because it requires
# elements to be hashable. # elements to be hashable.
expected_result = [ expected_result: List[Tuple[Realm, List[Stream]]] = [
(zulip_realm, list(Stream.objects.filter(realm=zulip_realm).exclude(id=verona.id))), (zulip_realm, list(Stream.objects.filter(realm=zulip_realm).exclude(id=verona.id))),
(zephyr_realm, [archiving_enabled_zephyr_stream]), (zephyr_realm, [archiving_enabled_zephyr_stream]),
(realm_all_streams_archiving_disabled, []), (realm_all_streams_archiving_disabled, []),