Skip to content

Commit

Permalink
pylint
Browse files Browse the repository at this point in the history
  • Loading branch information
faucomte97 committed Sep 18, 2024
1 parent 8eb388d commit 4975dcb
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions codeforlife/tests/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -268,6 +268,8 @@ def login_as(self, user: TypedUser, password: str = "password"):
user: The user to log in as.
password: The user's password.
"""
auth_user = None

if isinstance(user, AdminSchoolTeacherUser):
auth_user = self.login_admin_school_teacher(user.email, password)
elif isinstance(user, NonAdminSchoolTeacherUser):
Expand Down
1 change: 1 addition & 0 deletions codeforlife/user/models/teacher.py
Original file line number Diff line number Diff line change
Expand Up @@ -174,6 +174,7 @@ def get_queryset(self):
objects: models.Manager["NonSchoolTeacher"] = Manager()


# pylint: disable-next=invalid-name
TypedTeacher = t.Union[
SchoolTeacher,
AdminSchoolTeacher,
Expand Down
1 change: 1 addition & 0 deletions codeforlife/user/models/user.py
Original file line number Diff line number Diff line change
Expand Up @@ -605,6 +605,7 @@ class Meta(TypedModelMeta):
)


# pylint: disable-next=invalid-name
TypedUser = t.Union[
TeacherUser,
SchoolTeacherUser,
Expand Down

0 comments on commit 4975dcb

Please sign in to comment.