Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add typing of django.db.migrations.autodetector #2149

Merged
merged 1 commit into from
May 12, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions django-stubs/db/migrations/autodetector.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -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: ...
Expand Down
7 changes: 0 additions & 7 deletions scripts/stubtest/allowlist_todo.txt
Original file line number Diff line number Diff line change
Expand Up @@ -650,14 +650,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__
Expand Down
Loading