add typechecking

This commit is contained in:
2025-04-24 18:35:07 +02:00
parent fcac6062bb
commit f848cb1379

View File

@@ -7,15 +7,14 @@ class anilistAPI(AnilistAPI):
def __init__(self):
super().__init__()
def getSeries(self, title):
search = title
manga = self.search_manga(search)
def getSeries(self, title: str):
manga = self.search_manga(title)
if manga:
return manga
else:
return None
def get_metadata(self, manga_id):
def get_metadata(self, manga_id: int):
metadata = self.get_manga(manga_id)
return metadata