typeddjango / djangorestframework-stubs

PEP-484 stubs for django-rest-framework
MIT License
453 stars 117 forks source link

Improve `BaseSerializer` and `ListSerializer` method `to_representation()` #509

Closed intgr closed 1 year ago

intgr commented 1 year ago

FYI @4c0n, this is a follow-up to #504.

The original PR changed BaseSerializer.to_representation() to return dict[str, Any].

However, turns out BaseSerializer subclass ListSerializer method actualy returns list.

Changed now:

Related issues