From 1b8e16b6cf68fd73b84bbd876ff9a20d43466992 Mon Sep 17 00:00:00 2001 From: Loic Coyle Date: Sun, 23 Aug 2020 15:26:58 +0200 Subject: add missing typing --- tpblite/tpblite.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tpblite') diff --git a/tpblite/tpblite.py b/tpblite/tpblite.py index b4028b6..9365c7e 100644 --- a/tpblite/tpblite.py +++ b/tpblite/tpblite.py @@ -61,7 +61,7 @@ class TPB: self._search_url = q.url return Torrents(q.html_source) - def top(self, category: int = 0, last_48: bool = False): + def top(self, category: int = 0, last_48: bool = False) -> Torrents: """Get the top torrents of a category and return a list of Torrents Args: @@ -70,7 +70,7 @@ class TPB: last_48: wether to fetch the top torrent in the last 48 hours or the overall top Return: - Torrent object + Torrents object """ q = QueryParser.top(self.base_url, category, last_48) self._search_url = q.url -- cgit v1.2.3