Skip to content

Commit

Permalink
disable missing-function-docstring
Browse files Browse the repository at this point in the history
  • Loading branch information
SKairinos committed Nov 5, 2024
1 parent f9294cd commit 2492870
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions codeforlife/user/views/klass.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ class ClassViewSet(ModelViewSet[RequestUser, Class]):
serializer_class = ClassSerializer
filterset_class = ClassFilterSet

# pylint: disable-next=missing-function-docstring
def get_permissions(self):
# Only school-teachers can list classes.
if self.action == "list":
Expand Down
2 changes: 2 additions & 0 deletions codeforlife/user/views/user.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ class UserViewSet(ModelViewSet[RequestUser, User]):
serializer_class = UserSerializer[User]
filterset_class = UserFilterSet

# pylint: disable-next=missing-function-docstring
def get_queryset(
self,
user_class: t.Type[AnyUser] = User, # type: ignore[assignment]
Expand Down Expand Up @@ -67,6 +68,7 @@ def get_queryset(

return queryset.filter(pk=user.pk)

# pylint: disable-next=missing-function-docstring
def get_bulk_queryset( # pragma: no cover
self,
lookup_values: t.Collection,
Expand Down

0 comments on commit 2492870

Please sign in to comment.