mirror of https://github.com/zulip/zulip.git
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:
parent
e665ec8ae2
commit
c5075be9aa
|
@ -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
|
||||
# if python had a true "unordered list" data structure. Set doesn't do the job, because it requires
|
||||
# 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))),
|
||||
(zephyr_realm, [archiving_enabled_zephyr_stream]),
|
||||
(realm_all_streams_archiving_disabled, []),
|
||||
|
|
Loading…
Reference in New Issue