From 031a5e49f8069c3417fda66598cec226834f5cd9 Mon Sep 17 00:00:00 2001 From: Jae Hyuck Sa Date: Thu, 2 May 2024 17:12:16 +0900 Subject: [PATCH] 5.0: Update django.db.migrations.serializer (#2109) --- django-stubs/db/migrations/serializer.pyi | 5 +++-- scripts/stubtest/allowlist_todo_django50.txt | 1 - 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/django-stubs/db/migrations/serializer.pyi b/django-stubs/db/migrations/serializer.pyi index c20167b76..99f332890 100644 --- a/django-stubs/db/migrations/serializer.pyi +++ b/django-stubs/db/migrations/serializer.pyi @@ -7,6 +7,7 @@ class BaseSerializer: def serialize(self) -> tuple[str, set[str]]: ... class BaseSequenceSerializer(BaseSerializer): ... +class BaseUnorderedSequenceSerializer(BaseSequenceSerializer): ... class BaseSimpleSerializer(BaseSerializer): ... class DateTimeSerializer(BaseSerializer): ... class DatetimeDatetimeSerializer(BaseSerializer): ... @@ -21,7 +22,7 @@ class DeconstructableSerializer(BaseSerializer): class DictionarySerializer(BaseSerializer): ... class EnumSerializer(BaseSerializer): ... class FloatSerializer(BaseSimpleSerializer): ... -class FrozensetSerializer(BaseSequenceSerializer): ... +class FrozensetSerializer(BaseUnorderedSequenceSerializer): ... class FunctionTypeSerializer(BaseSerializer): ... class FunctoolsPartialSerializer(BaseSerializer): ... class IterableSerializer(BaseSerializer): ... @@ -32,7 +33,7 @@ class PathLikeSerializer(BaseSerializer): ... class PathSerializer(BaseSerializer): ... class RegexSerializer(BaseSerializer): ... class SequenceSerializer(BaseSequenceSerializer): ... -class SetSerializer(BaseSequenceSerializer): ... +class SetSerializer(BaseUnorderedSequenceSerializer): ... class SettingsReferenceSerializer(BaseSerializer): ... class TupleSerializer(BaseSequenceSerializer): ... class TypeSerializer(BaseSerializer): ... diff --git a/scripts/stubtest/allowlist_todo_django50.txt b/scripts/stubtest/allowlist_todo_django50.txt index 7848ab8b5..b1be3734e 100644 --- a/scripts/stubtest/allowlist_todo_django50.txt +++ b/scripts/stubtest/allowlist_todo_django50.txt @@ -72,7 +72,6 @@ django.db.backends.sqlite3.features.DatabaseFeatures.supports_stored_generated_c django.db.backends.sqlite3.features.DatabaseFeatures.supports_virtual_generated_columns django.db.backends.sqlite3.schema.DatabaseSchemaEditor.sql_alter_column_comment django.db.backends.sqlite3.schema.DatabaseSchemaEditor.sql_alter_table_comment -django.db.migrations.serializer.BaseUnorderedSequenceSerializer django.db.models.Case.allowed_default django.db.models.ExpressionWrapper.allowed_default django.db.models.F.allowed_default