From 128ff2f481a4d74ae69533fdd5b458e76efeeed4 Mon Sep 17 00:00:00 2001 From: Benjamin Drieu Date: Tue, 9 May 2023 14:16:01 +0200 Subject: [PATCH] Modification du typage --- redminebot.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/redminebot.py b/redminebot.py index 93994d5..2fffb78 100755 --- a/redminebot.py +++ b/redminebot.py @@ -138,7 +138,7 @@ class Bot: self.send_raw("JOIN {} \n".format(project.channel)) # Joins channel self.projects.append(project) - def get_project(self, name: str) -> Project | None: + def get_project(self, name: str) -> Project: for project in self.projects: if name[0] != '#' and project.name == name: return project