From 67e6b17810d65b0971fdf840d4ec724b6a5eb5b6 Mon Sep 17 00:00:00 2001 From: SKairinos Date: Tue, 5 Nov 2024 13:59:23 +0000 Subject: [PATCH] disable duplicate code --- codeforlife/serializers/base.py | 1 + codeforlife/serializers/model.py | 1 + codeforlife/views/api.py | 1 + codeforlife/views/model.py | 1 + 4 files changed, 4 insertions(+) diff --git a/codeforlife/serializers/base.py b/codeforlife/serializers/base.py index 5c8fbf0..8f43af7 100644 --- a/codeforlife/serializers/base.py +++ b/codeforlife/serializers/base.py @@ -12,6 +12,7 @@ from ..request import Request +# pylint: disable-next=duplicate-code if t.TYPE_CHECKING: from ..user.models import User diff --git a/codeforlife/serializers/model.py b/codeforlife/serializers/model.py index ad99c18..2a1476b 100644 --- a/codeforlife/serializers/model.py +++ b/codeforlife/serializers/model.py @@ -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 diff --git a/codeforlife/views/api.py b/codeforlife/views/api.py index 07c0d45..fe92dfe 100644 --- a/codeforlife/views/api.py +++ b/codeforlife/views/api.py @@ -9,6 +9,7 @@ from ..request import Request +# pylint: disable-next=duplicate-code if t.TYPE_CHECKING: from ..user.models import User diff --git a/codeforlife/views/model.py b/codeforlife/views/model.py index 7151699..3f5f6a3 100644 --- a/codeforlife/views/model.py +++ b/codeforlife/views/model.py @@ -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