Skip to content

Commit

Permalink
Correct db_comment arg position for `django.db.models.Field.__init_…
Browse files Browse the repository at this point in the history
…_` (#1815)
  • Loading branch information
flaeppe authored Nov 5, 2023
1 parent 0bb2155 commit 5faecc8
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
2 changes: 1 addition & 1 deletion django-stubs/db/models/fields/__init__.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 0 additions & 3 deletions scripts/stubtest/allowlist_todo.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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__
Expand Down Expand Up @@ -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__
Expand Down Expand Up @@ -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__
Expand Down

0 comments on commit 5faecc8

Please sign in to comment.