Modification du typage
This commit is contained in:
parent
0b4241a883
commit
128ff2f481
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user