Skip to content

Commit e55f354

Browse files
authored
Add max_length and min_length args for ListSerializer signature (#336)
1 parent 05c421e commit e55f354

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

rest_framework-stubs/serializers.pyi

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -177,6 +177,8 @@ class ListSerializer(
177177
error_messages: dict[str, str] = ...,
178178
validators: Sequence[Validator[list[Any]]] | None = ...,
179179
allow_null: bool = ...,
180+
min_length: int | None = ...,
181+
max_length: int | None = ...,
180182
): ...
181183
def get_initial(self) -> list[Mapping[Any, Any]]: ...
182184
def validate(self, attrs: Any) -> Any: ...

0 commit comments

Comments
 (0)