Skip to content

Commit 9cc4a41

Browse files
authored
Revert "Fix field type arguments (#58)"
This reverts commit 1b551eb.
1 parent 0e1324a commit 9cc4a41

File tree

1 file changed

+1
-25
lines changed

1 file changed

+1
-25
lines changed

rest_framework-stubs/fields.pyi

Lines changed: 1 addition & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -142,11 +142,8 @@ class CharField(Field):
142142
# kwargs.pop() in CharField
143143
allow_blank: bool = ...,
144144
trim_whitespace: bool = ...,
145-
min_length: Optional[int] = ...,
146145
max_length: Optional[int] = ...,
147-
validators: Optional[Sequence[_Validator]] = ...,
148-
error_messages: Optional[Mapping[str, str]] = ...,
149-
style: Optional[Mapping[str, Any]] = ...,
146+
min_length: Optional[int] = ...,
150147
): ...
151148

152149
class EmailField(CharField): ...
@@ -170,13 +167,6 @@ class RegexField(CharField):
170167
source: Union[Callable, str] = ...,
171168
label: Optional[str] = ...,
172169
help_text: Optional[str] = ...,
173-
allow_null: bool = ...,
174-
allow_blank: bool = ...,
175-
trim_whitespace: bool = ...,
176-
min_length: Optional[int] = ...,
177-
max_length: Optional[int] = ...,
178-
validators: Optional[Sequence[_Validator]] = ...,
179-
error_messages: Optional[Mapping[str, str]] = ...,
180170
style: Optional[Mapping[str, Any]] = ...,
181171
error_messages: Optional[Mapping[str, str]] = ...,
182172
validators: Optional[Sequence[_Validator]] = ...,
@@ -204,13 +194,6 @@ class SlugField(CharField):
204194
source: Union[Callable, str] = ...,
205195
label: Optional[str] = ...,
206196
help_text: Optional[str] = ...,
207-
allow_null: bool = ...,
208-
allow_blank: bool = ...,
209-
trim_whitespace: bool = ...,
210-
min_length: Optional[int] = ...,
211-
max_length: Optional[int] = ...,
212-
validators: Optional[Sequence[_Validator]] = ...,
213-
error_messages: Optional[Mapping[str, str]] = ...,
214197
style: Optional[Mapping[str, Any]] = ...,
215198
error_messages: Optional[Mapping[str, str]] = ...,
216199
validators: Optional[Sequence[_Validator]] = ...,
@@ -268,13 +251,6 @@ class IPAddressField(CharField):
268251
source: Union[Callable, str] = ...,
269252
label: Optional[str] = ...,
270253
help_text: Optional[str] = ...,
271-
allow_null: bool = ...,
272-
allow_blank: bool = ...,
273-
trim_whitespace: bool = ...,
274-
min_length: Optional[int] = ...,
275-
max_length: Optional[int] = ...,
276-
validators: Optional[Sequence[_Validator]] = ...,
277-
error_messages: Optional[Mapping[str, str]] = ...,
278254
style: Optional[Mapping[str, Any]] = ...,
279255
error_messages: Optional[Mapping[str, str]] = ...,
280256
validators: Optional[Sequence[_Validator]] = ...,

0 commit comments

Comments
 (0)