Closed intgr closed 1 year ago
FYI @4c0n, this is a follow-up to #504.
The original PR changed BaseSerializer.to_representation() to return dict[str, Any].
BaseSerializer.to_representation()
dict[str, Any]
However, turns out BaseSerializer subclass ListSerializer method actualy returns list.
BaseSerializer
ListSerializer
list
Changed now:
Any
Serializer.to_representation()
ListSerializer.to_representation()
list[Any]
FYI @4c0n, this is a follow-up to #504.
The original PR changed
BaseSerializer.to_representation()
to returndict[str, Any]
.However, turns out
BaseSerializer
subclassListSerializer
method actualy returnslist
.Changed now:
BaseSerializer.to_representation()
->Any
Serializer.to_representation()
->dict[str, Any]
ListSerializer.to_representation()
->list[Any]
ListSerializer.to_representation()
argument typeRelated issues
504