add typechecking
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user