From f848cb137970da314de4bc6a34261b73e4165090 Mon Sep 17 00:00:00 2001 From: WorldTeacher Date: Thu, 24 Apr 2025 18:35:07 +0200 Subject: [PATCH] add typechecking --- src/api/anilistapi.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/api/anilistapi.py b/src/api/anilistapi.py index 0ed44e3..ec95794 100644 --- a/src/api/anilistapi.py +++ b/src/api/anilistapi.py @@ -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