aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLoic Coyle <loic.coyle@hotmail.fr>2020-08-23 15:26:58 +0200
committerLoic Coyle <loic.coyle@hotmail.fr>2020-08-23 15:26:58 +0200
commit1b8e16b6cf68fd73b84bbd876ff9a20d43466992 (patch)
tree380e8a27d2e459f663ddb10065cf0fa4c0025ab3
parente9e1c637b95f609a3053c243f2f5837d5214f3c0 (diff)
downloadtpb-lite-1b8e16b6cf68fd73b84bbd876ff9a20d43466992.tar.gz
tpb-lite-1b8e16b6cf68fd73b84bbd876ff9a20d43466992.tar.bz2
tpb-lite-1b8e16b6cf68fd73b84bbd876ff9a20d43466992.zip
add missing typing
-rw-r--r--tpblite/tpblite.py4
1 files changed, 2 insertions, 2 deletions
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