Skip to content

Commit

Permalink
fix: imports
Browse files Browse the repository at this point in the history
  • Loading branch information
SKairinos committed Nov 5, 2024
1 parent e380049 commit c3312e6
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
4 changes: 2 additions & 2 deletions codeforlife/serializers/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@
Created on 20/01/2024 at 11:19:12(+00:00).
"""

from .base import *
from .model import *
from .base import BaseSerializer
from .model import ModelListSerializer, ModelSerializer
8 changes: 7 additions & 1 deletion codeforlife/views/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,13 @@
from rest_framework.views import APIView as _APIView

from ..request import Request
from ..user.models import AnyUser as RequestUser

if t.TYPE_CHECKING:
from ..user.models import User

RequestUser = t.TypeVar("RequestUser", bound=User)
else:
RequestUser = t.TypeVar("RequestUser")


# pylint: disable-next=missing-class-docstring
Expand Down

0 comments on commit c3312e6

Please sign in to comment.