[gnome-music/wip/mschraal/grltrackerplaylists-remove-requery: 4/4] grltrackerplaylists: Add partial typing information




commit 2cc51a7a91e562e1983251190e1806ff75d72eb9
Author: Marinus Schraal <mschraal gnome org>
Date:   Mon May 30 10:29:00 2022 +0200

    grltrackerplaylists: Add partial typing information

 gnomemusic/grilowrappers/grltrackerplaylists.py | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)
---
diff --git a/gnomemusic/grilowrappers/grltrackerplaylists.py b/gnomemusic/grilowrappers/grltrackerplaylists.py
index 1febf8d9f..1266af9ef 100644
--- a/gnomemusic/grilowrappers/grltrackerplaylists.py
+++ b/gnomemusic/grilowrappers/grltrackerplaylists.py
@@ -638,12 +638,14 @@ class Playlist(GObject.GObject):
 
         :param list coresongs: list of Coresong
         """
-        def _add_to_model(conn, res, coresong):
+        def _add_to_model(
+                connection: Tracker.SparqlConnection, result: Gio.AsyncResult,
+                coresong: CoreSong) -> None:
             if self._model is None:
                 return
 
             try:
-                conn.update_finish(res)
+                connection.update_finish(result)
             except GLib.Error as error:
                 self._log.warning(
                     "Unable to add to playlist {} song {}: {}".format(


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]