From ae55e3d31d1ad0ebb71a3410fe030bccf2e688fc Mon Sep 17 00:00:00 2001 From: Jordan Newport Date: Wed, 1 Dec 2021 22:49:17 -0700 Subject: [PATCH] Fix mypy type signature --- sublime_music/ui/browse.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sublime_music/ui/browse.py b/sublime_music/ui/browse.py index 376c806..f42c660 100644 --- a/sublime_music/ui/browse.py +++ b/sublime_music/ui/browse.py @@ -377,7 +377,7 @@ class MusicDirectoryList(Gtk.Box): self.drilldown_directories_store, new_directories_store ) - def song_sort_key(song: API.Song): + def song_sort_key(song: API.Song) -> Tuple[Optional[int], Optional[int]]: return ( song.disc_number if hasattr(song, "disc_number") else 0, song.track if hasattr(song, "track") else 0,