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.send_raw("JOIN {} \n".format(project.channel)) # Joins channel
|
||||||
self.projects.append(project)
|
self.projects.append(project)
|
||||||
|
|
||||||
def get_project(self, name: str) -> Project | None:
|
def get_project(self, name: str) -> Project:
|
||||||
for project in self.projects:
|
for project in self.projects:
|
||||||
if name[0] != '#' and project.name == name:
|
if name[0] != '#' and project.name == name:
|
||||||
return project
|
return project
|
||||||
|
Loading…
Reference in New Issue
Block a user