Skip to content

Commit

Permalink
Make HyperlinkedModelSerializer generic (#595)
Browse files Browse the repository at this point in the history
Co-authored-by: Nikita Sobolev <[email protected]>
  • Loading branch information
intgr and sobolevn authored Apr 24, 2024
1 parent 71a6b53 commit 9d25503
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rest_framework-stubs/serializers.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -263,4 +263,4 @@ class ModelSerializer(Serializer, BaseSerializer[_MT]):
def get_unique_together_validators(self) -> list[UniqueTogetherValidator]: ...
def get_unique_for_date_validators(self) -> list[BaseUniqueForValidator]: ...

class HyperlinkedModelSerializer(ModelSerializer): ...
class HyperlinkedModelSerializer(ModelSerializer[_MT]): ...

0 comments on commit 9d25503

Please sign in to comment.