From 800a22751036b2c710f7aab9451c448c70cf7ab3 Mon Sep 17 00:00:00 2001 From: Noam Date: Tue, 13 Feb 2024 15:49:41 +0200 Subject: [PATCH] Fixed build_standard_field parameter typing. --- 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 07a12d524..d2d659806 100644 --- a/rest_framework-stubs/serializers.pyi +++ b/rest_framework-stubs/serializers.pyi @@ -233,7 +233,7 @@ class ModelSerializer(Serializer, BaseSerializer[_MT]): self, field_name: str, info: FieldInfo, model_class: _MT, nested_depth: int ) -> tuple[type[Field], dict[str, Any]]: ... def build_standard_field( - self, field_name: str, model_field: type[models.Field] + self, field_name: str, model_field: models.Field ) -> tuple[type[Field], dict[str, Any]]: ... def build_relational_field( self, field_name: str, relation_info: RelationInfo