From a3fc0c7df30a981ba98fc42ea6c398a5437ff38c Mon Sep 17 00:00:00 2001 From: SKairinos Date: Tue, 5 Nov 2024 16:43:29 +0000 Subject: [PATCH] disable duplicate code --- codeforlife/request/drf.py | 3 ++- codeforlife/request/http.py | 3 ++- codeforlife/request/wsgi.py | 3 ++- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/codeforlife/request/drf.py b/codeforlife/request/drf.py index 7162e0f..44b34f8 100644 --- a/codeforlife/request/drf.py +++ b/codeforlife/request/drf.py @@ -13,7 +13,7 @@ from ..types import JsonDict, JsonList -# pylint: disable-next=duplicate-code +# pylint: disable=duplicate-code if t.TYPE_CHECKING: from ..user.models import User from ..user.models.session import SessionStore @@ -24,6 +24,7 @@ AnyDBStore = t.TypeVar("AnyDBStore", bound=DBStore) AnyAbstractBaseUser = t.TypeVar("AnyAbstractBaseUser", bound=AbstractBaseUser) +# pylint: enable=duplicate-code # pylint: disable-next=missing-class-docstring,abstract-method diff --git a/codeforlife/request/http.py b/codeforlife/request/http.py index 3595c37..a64c13e 100644 --- a/codeforlife/request/http.py +++ b/codeforlife/request/http.py @@ -11,7 +11,7 @@ from django.contrib.sessions.backends.db import SessionStore as DBStore from django.http import HttpRequest as _HttpRequest -# pylint: disable-next=duplicate-code +# pylint: disable=duplicate-code if t.TYPE_CHECKING: from ..user.models import User from ..user.models.session import SessionStore @@ -22,6 +22,7 @@ AnyDBStore = t.TypeVar("AnyDBStore", bound=DBStore) AnyAbstractBaseUser = t.TypeVar("AnyAbstractBaseUser", bound=AbstractBaseUser) +# pylint: enable=duplicate-code # pylint: disable-next=missing-class-docstring diff --git a/codeforlife/request/wsgi.py b/codeforlife/request/wsgi.py index 72b3ca6..dd4778d 100644 --- a/codeforlife/request/wsgi.py +++ b/codeforlife/request/wsgi.py @@ -11,7 +11,7 @@ from django.contrib.sessions.backends.db import SessionStore as DBStore from django.core.handlers.wsgi import WSGIRequest as _WSGIRequest -# pylint: disable-next=duplicate-code +# pylint: disable=duplicate-code if t.TYPE_CHECKING: from ..user.models import User from ..user.models.session import SessionStore @@ -22,6 +22,7 @@ AnyDBStore = t.TypeVar("AnyDBStore", bound=DBStore) AnyAbstractBaseUser = t.TypeVar("AnyAbstractBaseUser", bound=AbstractBaseUser) +# pylint: enable=duplicate-code # pylint: disable-next=missing-class-docstring