Skip to content

Commit e00d4ce

Browse files
authored
Allow None for ListField.min/max_length (#601)
1 parent f141057 commit e00d4ce

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

rest_framework-stubs/fields.pyi

+2-2
Original file line numberDiff line numberDiff line change
@@ -618,8 +618,8 @@ class ListField(Field[list[Any], list[Any], list[Any], Any]):
618618
allow_null: bool = ...,
619619
child: Field = ...,
620620
allow_empty: bool = ...,
621-
max_length: int = ...,
622-
min_length: int = ...,
621+
max_length: int | None = ...,
622+
min_length: int | None = ...,
623623
) -> None: ...
624624
def run_child_validation(self, data: list[Mapping[Any, Any]]) -> Any: ...
625625

0 commit comments

Comments
 (0)