From 1c4d13cd2fa46e1688080d58a67a5bacab089497 Mon Sep 17 00:00:00 2001 From: Ethan Dalool Date: Sat, 29 Oct 2022 22:21:11 -0700 Subject: [PATCH] Add type annotations to ytrss. --- ycdl/ytrss.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ycdl/ytrss.py b/ycdl/ytrss.py index 0e01528..a26d115 100644 --- a/ycdl/ytrss.py +++ b/ycdl/ytrss.py @@ -24,7 +24,7 @@ def _get_user_videos(channel_id): log.loud('RSS got %s.', video_ids) return video_ids -def get_user_videos(channel_id): +def get_user_videos(channel_id) -> list[str]: ''' Return the list of video ids from the channel. Expect a maximum of 15 results. @@ -35,7 +35,7 @@ def get_user_videos(channel_id): log.warning(traceback.format_exc()) raise exceptions.RSSAssistFailed(f'Failed to fetch RSS videos ({exc}).') from exc -def get_user_videos_since(channel_id, video_id): +def get_user_videos_since(channel_id, video_id) -> list[str]: ''' Return the list of video ids that are more recently released than the reference id.