From 67a34a979c532ea6a6e3842a9d6ab66ce550eaed Mon Sep 17 00:00:00 2001 From: Petter Friberg Date: Sat, 4 Nov 2023 21:14:56 +0100 Subject: [PATCH] Correct `db_comment` arg position for `django.db.models.Field.__init__` --- django-stubs/db/models/fields/__init__.pyi | 2 +- scripts/stubtest/allowlist_todo.txt | 3 --- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/django-stubs/db/models/fields/__init__.pyi b/django-stubs/db/models/fields/__init__.pyi index 279131eca..aa5a81ac7 100644 --- a/django-stubs/db/models/fields/__init__.pyi +++ b/django-stubs/db/models/fields/__init__.pyi @@ -175,11 +175,11 @@ class Field(RegisterLookupMixin, Generic[_ST, _GT]): choices: _FieldChoices | None = ..., help_text: _StrOrPromise = ..., db_column: str | None = ..., - db_comment: str | None = ..., db_tablespace: str | None = ..., auto_created: bool = ..., validators: Iterable[validators._ValidatorCallable] = ..., error_messages: _ErrorMessagesMapping | None = ..., + db_comment: str | None = ..., ) -> None: ... def __set__(self, instance: Any, value: _ST) -> None: ... # class access diff --git a/scripts/stubtest/allowlist_todo.txt b/scripts/stubtest/allowlist_todo.txt index 9dec9f88b..90f02e1c4 100644 --- a/scripts/stubtest/allowlist_todo.txt +++ b/scripts/stubtest/allowlist_todo.txt @@ -359,7 +359,6 @@ django.contrib.gis.db.models.Field.__deepcopy__ django.contrib.gis.db.models.Field.__ge__ django.contrib.gis.db.models.Field.__get__ django.contrib.gis.db.models.Field.__gt__ -django.contrib.gis.db.models.Field.__init__ django.contrib.gis.db.models.Field.__le__ django.contrib.gis.db.models.Field.__lt__ django.contrib.gis.db.models.Field.__set__ @@ -1102,7 +1101,6 @@ django.db.models.Field.__deepcopy__ django.db.models.Field.__ge__ django.db.models.Field.__get__ django.db.models.Field.__gt__ -django.db.models.Field.__init__ django.db.models.Field.__le__ django.db.models.Field.__lt__ django.db.models.Field.__set__ @@ -1393,7 +1391,6 @@ django.db.models.fields.Field.__deepcopy__ django.db.models.fields.Field.__ge__ django.db.models.fields.Field.__get__ django.db.models.fields.Field.__gt__ -django.db.models.fields.Field.__init__ django.db.models.fields.Field.__le__ django.db.models.fields.Field.__lt__ django.db.models.fields.Field.__set__