Skip to content

Commit e3755a8

Browse files
committed
fix some typings
1 parent 2732ca9 commit e3755a8

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

task_database.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -432,7 +432,7 @@ def get_roll_candidates_for_tier(username: str, tier: str, min_candidates: int =
432432
'''
433433

434434

435-
def generate_task(username: str) -> TaskData or None: # type: ignore
435+
def generate_task(username: str) -> TaskData | None:
436436
user = get_user(username)
437437
if user.current_task() is not None:
438438
return

user_dao.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,15 +64,15 @@ def get_task_list(self, tier: str) -> UserTaskList:
6464
}[tier]
6565

6666

67-
def current_task_for_tier(self, tier: str) -> tuple or None: # type: ignore
67+
def current_task_for_tier(self, tier: str) -> tuple | None:
6868
user_task_list = self.get_task_list(tier)
6969
if user_task_list.current_task is None:
7070
return None
7171
task = task_info_for_id(tasklists.list_for_tier(tier), user_task_list.current_task.id)
7272
# TODO Fix this format
7373
return task.name, task.image_link, tier, task.id, task.tip, task.wiki_link, task.image_link
7474

75-
def current_task(self) -> tuple or None: # type: ignore
75+
def current_task(self) -> tuple | None:
7676
if self.easy.current_task is not None:
7777
return self.current_task_for_tier('easyTasks')
7878
elif self.medium.current_task is not None:

0 commit comments

Comments
 (0)