Skip to content

Commit 199a7f2

Browse files
authored
Allow Promise to be passed to ArrayField.verbose_name (#1168)
* Allow Promise to be passed to ArrayField.verbose_name * Remove bytes and allow Promise for name as well
1 parent 93fa1d2 commit 199a7f2

File tree

1 file changed

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

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@ class ArrayField(CheckFieldDefaultMixin, Field[_ST, _GT]):
2727
base_field: Field,
2828
size: Optional[int] = ...,
2929
*,
30-
verbose_name: Optional[Union[str, bytes]] = ...,
31-
name: Optional[str] = ...,
30+
verbose_name: Optional[_StrOrPromise] = ...,
31+
name: Optional[_StrOrPromise] = ...,
3232
primary_key: bool = ...,
3333
max_length: Optional[int] = ...,
3434
unique: bool = ...,

0 commit comments

Comments
 (0)