Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
migrations: Switch message_model type to Any.
Anders Kaseorgfd617b24f220
diff --git a/zerver/migrations/0377_message_edit_history_format.py b/zerver/migrations/0377_message_edit_history_format.pyindex e3d73d38e23..33542d25583 100644--- a/zerver/migrations/0377_message_edit_history_format.py+++ b/zerver/migrations/0377_message_edit_history_format.py@@ -1,11 +1,11 @@import time-from typing import List, Optional, Type, TypedDict+from typing import Any, List, Optional, Type, TypedDictimport orjsonfrom django.db import migrations, transactionfrom django.db.backends.postgresql.schema import BaseDatabaseSchemaEditorfrom django.db.migrations.state import StateApps-from django.db.models import Min, Model+from django.db.models import MinBATCH_SIZE = 10000STREAM = 2@@ -38,7 +38,7 @@ class EditHistoryEvent(TypedDict, total=False):@transaction.atomicdef backfill_message_edit_history_chunk(- first_id: int, last_id: int, message_model: Type[Model]+ first_id: int, last_id: int, message_model: Type[Any]) -> None:"""Migrate edit history events for the messages in the provided range to: