Skip to content

Commit

Permalink
fix: type hint
Browse files Browse the repository at this point in the history
  • Loading branch information
SKairinos committed Jan 31, 2024
1 parent 137cb7c commit 64e8043
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions codeforlife/tests/model_serializer.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
from rest_framework.test import APIRequestFactory

from ..serializers import ModelSerializer
from ..types import KwArgs
from ..types import JsonDict, KwArgs
from ..user.models import User

AnyModel = t.TypeVar("AnyModel", bound=Model)
Expand Down Expand Up @@ -109,7 +109,7 @@ def _assert_validate(

def assert_validate(
self,
attrs: t.Dict[str, t.Any],
attrs: t.Union[JsonDict, t.List[JsonDict]],
error_code: str,
user: t.Optional[User] = None,
request_kwargs: t.Optional[KwArgs] = None,
Expand Down

0 comments on commit 64e8043

Please sign in to comment.