From 960a01650ecfb1a2574e3fb3ebd5c458c6489f28 Mon Sep 17 00:00:00 2001 From: Brian Helba Date: Thu, 7 Sep 2023 17:16:57 -0400 Subject: [PATCH] Remove redefinition of inherited "deconstruct" methods. The base class "Operation" already defines a "deconstruct" method (which we have type annotations for). The child classes "AlterModelTableComment" and "AlterTogetherOptionOperation" do not need to redefine this. --- django-stubs/db/migrations/operations/models.pyi | 2 -- 1 file changed, 2 deletions(-) diff --git a/django-stubs/db/migrations/operations/models.pyi b/django-stubs/db/migrations/operations/models.pyi index 7a91125c7..e46fc9fd6 100644 --- a/django-stubs/db/migrations/operations/models.pyi +++ b/django-stubs/db/migrations/operations/models.pyi @@ -52,7 +52,6 @@ class AlterModelTable(ModelOptionOperation): class AlterModelTableComment(ModelOptionOperation): table_comment: str def __init__(self, name: str, table_comment: str) -> None: ... - def deconstruct(self) -> tuple[str, Sequence[Any], dict[str, Any]]: ... def state_forwards(self, app_label: str, state: Any) -> None: ... def database_forwards( self, app_label: str, schema_editor: BaseDatabaseSchemaEditor, from_state: Any, to_state: Any @@ -73,7 +72,6 @@ class AlterTogetherOptionOperation(ModelOptionOperation): ) -> None: ... @cached_property def option_value(self) -> set[tuple[str, ...]] | None: ... - def deconstruct(self) -> tuple[str, Sequence[Any], dict[str, Any]]: ... def state_forwards(self, app_label: str, state: Any) -> None: ... def database_forwards( self, app_label: str, schema_editor: BaseDatabaseSchemaEditor, from_state: Any, to_state: Any