Skip to content

Commit 1f2e406

Browse files
authored
Don't allow promise to be passed to ArrayField.name (#1171)
This was incorrectly changed in #1168, so reverting that change.
1 parent 56f74f1 commit 1f2e406

File tree

1 file changed

+1
-1
lines changed
  • django-stubs/contrib/postgres/fields

1 file changed

+1
-1
lines changed

django-stubs/contrib/postgres/fields/array.pyi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ class ArrayField(CheckFieldDefaultMixin, Field[_ST, _GT]):
2828
size: Optional[int] = ...,
2929
*,
3030
verbose_name: Optional[_StrOrPromise] = ...,
31-
name: Optional[_StrOrPromise] = ...,
31+
name: Optional[str] = ...,
3232
primary_key: bool = ...,
3333
max_length: Optional[int] = ...,
3434
unique: bool = ...,

0 commit comments

Comments
 (0)