From c43c1b6a09eaf5d0494ddb5d0661fd1804d3a4e8 Mon Sep 17 00:00:00 2001 From: SaJH Date: Sat, 4 May 2024 23:58:37 +0900 Subject: [PATCH] 5.0: Update django.contrib.gis.db.backends.sqatialite.schema --- django-stubs/contrib/gis/db/backends/spatialite/schema.pyi | 5 ++++- scripts/stubtest/allowlist_todo_django50.txt | 1 - 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/django-stubs/contrib/gis/db/backends/spatialite/schema.pyi b/django-stubs/contrib/gis/db/backends/spatialite/schema.pyi index 934da3f57..eb85638f8 100644 --- a/django-stubs/contrib/gis/db/backends/spatialite/schema.pyi +++ b/django-stubs/contrib/gis/db/backends/spatialite/schema.pyi @@ -21,5 +21,8 @@ class SpatialiteSchemaEditor(DatabaseSchemaEditor): def add_field(self, model: Any, field: Any) -> None: ... def remove_field(self, model: Any, field: Any) -> None: ... def alter_db_table( - self, model: Any, old_db_table: Any, new_db_table: Any, disable_constraints: bool = ... + self, + model: Any, + old_db_table: Any, + new_db_table: Any, ) -> None: ... diff --git a/scripts/stubtest/allowlist_todo_django50.txt b/scripts/stubtest/allowlist_todo_django50.txt index 0c2eea9a6..ed9de95f0 100644 --- a/scripts/stubtest/allowlist_todo_django50.txt +++ b/scripts/stubtest/allowlist_todo_django50.txt @@ -5,7 +5,6 @@ django.contrib.contenttypes.fields.GenericForeignKey.get_content_type django.contrib.contenttypes.fields.GenericForeignKey.get_prefetch_querysets django.contrib.contenttypes.prefetch -django.contrib.gis.db.backends.spatialite.schema.SpatialiteSchemaEditor.alter_db_table django.contrib.gis.db.models.Case.allowed_default django.contrib.gis.db.models.ExpressionWrapper.allowed_default django.contrib.gis.db.models.F.allowed_default