Skip to content

Commit

Permalink
fix types
Browse files Browse the repository at this point in the history
  • Loading branch information
SKairinos committed Nov 6, 2024
1 parent 27df3ee commit 48c9b46
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions codeforlife/tests/model_serializer.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@
from rest_framework.serializers import BaseSerializer, ValidationError

from ..serializers import (
BaseModelListSerializer,
BaseModelSerializer,
ModelListSerializer,
ModelSerializer,
)
from ..types import DataDict
Expand Down Expand Up @@ -141,7 +141,7 @@ def _assert_many(
new_data: t.Optional[t.List[DataDict]],
non_model_fields: t.Optional[NonModelFields],
get_models: t.Callable[
[ModelListSerializer[RequestUser, AnyModel], t.List[DataDict]],
[BaseModelListSerializer[t.Any, AnyModel], t.List[DataDict]],
t.List[AnyModel],
],
*args,
Expand All @@ -154,7 +154,7 @@ def _assert_many(
assert len(new_data) == len(validated_data)

kwargs.pop("many", None) # many must be True
serializer: ModelListSerializer[RequestUser, AnyModel] = (
serializer: BaseModelListSerializer[t.Any, AnyModel] = (
self._init_model_serializer(*args, **kwargs, many=True)
)

Expand Down

0 comments on commit 48c9b46

Please sign in to comment.