Fixing typing.

This commit is contained in:
Roland 2021-12-30 18:41:02 -07:00
parent d56c8fde24
commit e7c920f382
No known key found for this signature in database
GPG key ID: 9D6DBD3ACF11AB93
2 changed files with 2 additions and 2 deletions

View file

@ -435,7 +435,7 @@ def test_channel_downloader_hidden(video_download_manager):
ChannelDownloader should not be presented to the User.
"""
downloaders = video_download_manager.list_downloaders()
assert downloaders == [(dict(name='video', pretty_name='Videos')), ]
assert [i.__json__() for i in downloaders] == [(dict(name='video', pretty_name='Videos')), ]
def test_bad_downloader(test_session, video_download_manager):

View file

@ -532,7 +532,7 @@ class DownloadManager:
download.last_successful_download < one_month:
session.delete(download)
def list_downloaders(self) -> List[Dict]:
def list_downloaders(self) -> List[Downloader]:
"""
Return a list of the Downloaders available on this Download Manager.
"""