Skip to content

Commit

Permalink
disable duplicate code
Browse files Browse the repository at this point in the history
  • Loading branch information
SKairinos committed Nov 5, 2024
1 parent 40076c1 commit 67e6b17
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions codeforlife/serializers/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@

from ..request import Request

# pylint: disable-next=duplicate-code
if t.TYPE_CHECKING:
from ..user.models import User

Expand Down
1 change: 1 addition & 0 deletions codeforlife/serializers/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
from ..types import DataDict, OrderedDataDict
from .base import BaseSerializer

# pylint: disable-next=duplicate-code
if t.TYPE_CHECKING:
from ..user.models import User

Expand Down
1 change: 1 addition & 0 deletions codeforlife/views/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@

from ..request import Request

# pylint: disable-next=duplicate-code
if t.TYPE_CHECKING:
from ..user.models import User

Expand Down
1 change: 1 addition & 0 deletions codeforlife/views/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@

AnyModel = t.TypeVar("AnyModel", bound=Model)

# pylint: disable-next=duplicate-code
if t.TYPE_CHECKING: # pragma: no cover
from ..serializers import ModelListSerializer, ModelSerializer
from ..user.models import User
Expand Down

0 comments on commit 67e6b17

Please sign in to comment.