Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
migrations: Use the correct type annotation for the Model type.
Zixuan James Liece3fbdf954b
diff --git a/zerver/migrations/0377_message_edit_history_format.py b/zerver/migrations/0377_message_edit_history_format.pyindex 8cc8c0aa252..e3d73d38e23 100644--- a/zerver/migrations/0377_message_edit_history_format.py+++ b/zerver/migrations/0377_message_edit_history_format.py@@ -1,5 +1,5 @@import time-from typing import List, Optional, TypedDict+from typing import List, Optional, Type, TypedDictimport orjsonfrom django.db import migrations, transaction@@ -37,7 +37,9 @@ class EditHistoryEvent(TypedDict, total=False):@transaction.atomic-def backfill_message_edit_history_chunk(first_id: int, last_id: int, message_model: Model) -> None:+def backfill_message_edit_history_chunk(+ first_id: int, last_id: int, message_model: Type[Model]+) -> None:"""Migrate edit history events for the messages in the provided range to:* Rename prev_subject => prev_topic.