Skip to content

Commit

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

from .types import JsonDict, JsonList

# pylint: disable-next=duplicate-code
if t.TYPE_CHECKING:
from .user.models import User
from .user.models.session import SessionStore
Expand Down
1 change: 1 addition & 0 deletions codeforlife/tests/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
from .api_request_factory import APIRequestFactory
from .test import TestCase

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

Expand Down
1 change: 1 addition & 0 deletions codeforlife/tests/api_request_factory.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,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/tests/model_serializer.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
from .api_request_factory import APIRequestFactory
from .test import TestCase

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

Expand Down
1 change: 1 addition & 0 deletions codeforlife/tests/model_view_set.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
from ..views import ModelViewSet
from .api import APIClient, APITestCase

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

Expand Down

0 comments on commit 40076c1

Please sign in to comment.