From 40076c19e58401a56b3794996efb4179d54da186 Mon Sep 17 00:00:00 2001 From: SKairinos Date: Tue, 5 Nov 2024 13:57:52 +0000 Subject: [PATCH] ignore duplicate code --- codeforlife/request.py | 1 + codeforlife/tests/api.py | 1 + codeforlife/tests/api_request_factory.py | 1 + codeforlife/tests/model_serializer.py | 1 + codeforlife/tests/model_view_set.py | 1 + 5 files changed, 5 insertions(+) diff --git a/codeforlife/request.py b/codeforlife/request.py index 41fa056..39cd13f 100644 --- a/codeforlife/request.py +++ b/codeforlife/request.py @@ -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 diff --git a/codeforlife/tests/api.py b/codeforlife/tests/api.py index d2c0875..e70fb1c 100644 --- a/codeforlife/tests/api.py +++ b/codeforlife/tests/api.py @@ -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 diff --git a/codeforlife/tests/api_request_factory.py b/codeforlife/tests/api_request_factory.py index 61311c1..7565c02 100644 --- a/codeforlife/tests/api_request_factory.py +++ b/codeforlife/tests/api_request_factory.py @@ -16,6 +16,7 @@ from ..request import Request +# pylint: disable-next=duplicate-code if t.TYPE_CHECKING: from ..user.models import User diff --git a/codeforlife/tests/model_serializer.py b/codeforlife/tests/model_serializer.py index 232e897..dcda7bb 100644 --- a/codeforlife/tests/model_serializer.py +++ b/codeforlife/tests/model_serializer.py @@ -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 diff --git a/codeforlife/tests/model_view_set.py b/codeforlife/tests/model_view_set.py index bd944a9..3a37302 100644 --- a/codeforlife/tests/model_view_set.py +++ b/codeforlife/tests/model_view_set.py @@ -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