Skip to content

Commit

Permalink
disable too-many-ancestors
Browse files Browse the repository at this point in the history
  • Loading branch information
SKairinos committed Nov 7, 2024
1 parent a351a67 commit 4c5857a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions codeforlife/user/models/user.py
Original file line number Diff line number Diff line change
Expand Up @@ -192,6 +192,7 @@ def filter_users(self, queryset: QuerySet[User]):
return queryset.exclude(email__isnull=True).exclude(email="")


# pylint: disable-next=too-many-ancestors
class ContactableUser(User):
"""A user that can be contacted."""

Expand Down Expand Up @@ -275,6 +276,7 @@ def get_queryset(self):
return super().get_queryset().prefetch_related("new_teacher")


# pylint: disable-next=too-many-ancestors
class TeacherUser(ContactableUser):
"""A user that is a teacher."""

Expand Down Expand Up @@ -488,6 +490,7 @@ def get_queryset(self):
return super().get_queryset().prefetch_related("new_student")


# pylint: disable-next=too-many-ancestors
class StudentUser(User):
"""A user that is a student."""

Expand Down Expand Up @@ -602,6 +605,7 @@ def create_user( # type: ignore[override]
return user


# pylint: disable-next=too-many-ancestors
class IndependentUser(ContactableUser):
"""A user that is an independent learner."""

Expand Down

0 comments on commit 4c5857a

Please sign in to comment.