Closed jheld closed 1 month ago
The typing is a little incorrect as the truthy type does not match what the get_serializer_class returns.
get_serializer_class
serializer_class probably should be: type[BaseSerializer[_MT_co]] | None so that the truthy object type matches what get_serializer_class returns.
serializer_class
type[BaseSerializer[_MT_co]] | None
python
django
mypy
django-stubs
Bug report
What's wrong
The typing is a little incorrect as the truthy type does not match what the
get_serializer_class
returns.How is that should be
serializer_class
probably should be:type[BaseSerializer[_MT_co]] | None
so that the truthy object type matches whatget_serializer_class
returns.System information
python
version:django
version:mypy
version:django-stubs
version: