From 6f2e198a365bfdff954fa20a9769b5d87f124adc Mon Sep 17 00:00:00 2001 From: Marti Raudsepp Date: Tue, 23 Apr 2024 15:52:31 +0300 Subject: [PATCH] Make HyperlinkedModelSerializer generic --- rest_framework-stubs/serializers.pyi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rest_framework-stubs/serializers.pyi b/rest_framework-stubs/serializers.pyi index 833005d17..c7c3e3737 100644 --- a/rest_framework-stubs/serializers.pyi +++ b/rest_framework-stubs/serializers.pyi @@ -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]): ...