Skip to content

Commit 395f43d

Browse files
authored
Remove null and validators arguments from ManyToManyField.__init__ (#1720)
1 parent 5514e37 commit 395f43d

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

django-stubs/db/models/fields/related.pyi

-2
Original file line numberDiff line numberDiff line change
@@ -238,7 +238,6 @@ class ManyToManyField(RelatedField[_ST, _GT]):
238238
max_length: int | None = ...,
239239
unique: bool = ...,
240240
blank: bool = ...,
241-
null: bool = ...,
242241
db_index: bool = ...,
243242
default: Any = ...,
244243
editable: bool = ...,
@@ -252,7 +251,6 @@ class ManyToManyField(RelatedField[_ST, _GT]):
252251
db_column: str | None = ...,
253252
db_comment: str | None = ...,
254253
db_tablespace: str | None = ...,
255-
validators: Iterable[validators._ValidatorCallable] = ...,
256254
error_messages: _ErrorMessagesMapping | None = ...,
257255
) -> None: ...
258256
# class access

0 commit comments

Comments
 (0)