Skip to content

Commit

Permalink
disable duplicate code
Browse files Browse the repository at this point in the history
  • Loading branch information
SKairinos committed Nov 5, 2024
1 parent 623f995 commit a3fc0c7
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
3 changes: 2 additions & 1 deletion codeforlife/request/drf.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down
3 changes: 2 additions & 1 deletion codeforlife/request/http.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down
3 changes: 2 additions & 1 deletion codeforlife/request/wsgi.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit a3fc0c7

Please sign in to comment.