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