From f3dcf83ecfd26a7d66c9349dd3545fcd071e0c2d Mon Sep 17 00:00:00 2001 From: Jae Hyuck Sa Date: Sun, 12 May 2024 20:00:35 +0900 Subject: [PATCH] Add typing of django.db.migrations.autodetector (#2149) --- django-stubs/db/migrations/autodetector.pyi | 7 +++++++ scripts/stubtest/allowlist_todo.txt | 7 ------- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/django-stubs/db/migrations/autodetector.pyi b/django-stubs/db/migrations/autodetector.pyi index 931945734..4cb0b52f2 100644 --- a/django-stubs/db/migrations/autodetector.pyi +++ b/django-stubs/db/migrations/autodetector.pyi @@ -43,17 +43,24 @@ class MigrationAutodetector: def generate_created_proxies(self) -> None: ... def generate_deleted_models(self) -> None: ... def generate_deleted_proxies(self) -> None: ... + def create_renamed_fields(self) -> None: ... renamed_fields: Any def generate_renamed_fields(self) -> None: ... def generate_added_fields(self) -> None: ... def generate_removed_fields(self) -> None: ... def generate_altered_fields(self) -> None: ... def create_altered_indexes(self) -> None: ... + def generate_renamed_indexes(self) -> None: ... + def create_altered_constraints(self) -> None: ... + def generate_added_constraints(self) -> None: ... + def generate_removed_constraints(self) -> None: ... def generate_added_indexes(self) -> None: ... def generate_removed_indexes(self) -> None: ... + def generate_removed_altered_unique_together(self) -> None: ... def generate_altered_unique_together(self) -> None: ... def generate_altered_index_together(self) -> None: ... def generate_altered_db_table(self) -> None: ... + def generate_altered_db_table_comment(self) -> None: ... def generate_altered_options(self) -> None: ... def generate_altered_order_with_respect_to(self) -> None: ... def generate_altered_managers(self) -> None: ... diff --git a/scripts/stubtest/allowlist_todo.txt b/scripts/stubtest/allowlist_todo.txt index 104ad8f85..bb0baa90c 100644 --- a/scripts/stubtest/allowlist_todo.txt +++ b/scripts/stubtest/allowlist_todo.txt @@ -642,14 +642,7 @@ django.db.backends.utils.names_digest django.db.backends.utils.split_tzname_delta django.db.connection django.db.migrations.Migration.suggest_name -django.db.migrations.autodetector.MigrationAutodetector.create_altered_constraints -django.db.migrations.autodetector.MigrationAutodetector.create_renamed_fields -django.db.migrations.autodetector.MigrationAutodetector.generate_added_constraints -django.db.migrations.autodetector.MigrationAutodetector.generate_altered_db_table_comment django.db.migrations.autodetector.MigrationAutodetector.generate_removed_altered_index_together -django.db.migrations.autodetector.MigrationAutodetector.generate_removed_altered_unique_together -django.db.migrations.autodetector.MigrationAutodetector.generate_removed_constraints -django.db.migrations.autodetector.MigrationAutodetector.generate_renamed_indexes django.db.migrations.graph.MigrationGraph.make_state django.db.migrations.graph.Node.__ge__ django.db.migrations.graph.Node.__gt__