You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
q0w
changed the title
BaseSerializer.is_valid should return NoReturn when raise_exception = True
BaseSerializer.is_valid should return bool | NoReturn when raise_exception = True
Jul 24, 2022
Bug report
What's wrong
BaseSerializer.is_valid
should returnNoReturn
when takesraise_exception=True
Now mypy fails with
error: Missing return statement [return]
How is that should be
System information
python
version: 3.10.5django
version: 4.0.6mypy
version: 0.971django-stubs
version: 1.12.0The text was updated successfully, but these errors were encountered: