ModelSerializer was incorrectly deriving from Serializer[Any] and BaseSerializer[T]; replaced with Serializer[T].
This brings it into sync with DRF upstream.
Added TypeVar to HyperlinkedModelSerializer class.
Removed unnecessary Generic[] where implicit TypeVars are sufficient.
I have made thunks!
ModelSerializer
was incorrectly deriving fromSerializer[Any]
andBaseSerializer[T]
; replaced withSerializer[T]
. This brings it into sync with DRF upstream.HyperlinkedModelSerializer
class.Removed unnecessary
Generic[]
where implicit TypeVars are sufficient.https://mypy.readthedocs.io/en/stable/generics.html#defining-subclasses-of-generic-classes