Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

test_draft: Avoid inference with type annotation.

Zixuan James Lid238a448e664
diff --git a/zerver/tests/test_drafts.py b/zerver/tests/test_drafts.py
index 1e22f84738a..614a295c1ef 100644
--- a/zerver/tests/test_drafts.py
+++ b/zerver/tests/test_drafts.py
@@ -564,7 +564,7 @@ class DraftFetchTest(ZulipTestCase):
self.assertEqual(data["count"], 3)
first_draft_id = Draft.objects.filter(user_profile=hamlet).order_by("id")[0].id
- expected_draft_contents = [
+ expected_draft_contents: List[Dict[str, object]] = [
{"id": first_draft_id + i, **draft_dicts[i]} for i in range(0, 3)
]