Files
gnome-music/efda5de2d24f01141c5e291ae4267663a8e34831.patch
iznogood 2b247ca97a gnome-music: Add upstream patches
- Add upstream bug fix patches:
  + efda5de2d24f01141c5e291ae4267663a8e34831.patch:
    localsearchwrapper: Fix Tsparql import for type checking
  + acde5b9fa0955d901c61d980e48e790843b67ed0.patch: application:
    Add missing gi.require_version on `GstAudio`
- Drop global __requires_exclude typelib\\(TSparql\\), no longer
  needed.
2026-07-02 21:36:57 +02:00

47 lines
2.0 KiB
Diff

From efda5de2d24f01141c5e291ae4267663a8e34831 Mon Sep 17 00:00:00 2001
From: Jean Felder <jfelder@gnome.org>
Date: Thu, 25 Jun 2026 18:51:22 +0200
Subject: [PATCH] localsearchwrapper: Fix Tsparql import for type checking
It's `Tsparql`, `TSparql`. Also, `Tsparql` is already imported. There
is no need to also import it for type checking
Closes: https://gitlab.gnome.org/GNOME/gnome-music/-/work_items/672
---
gnomemusic/grilowrappers/localsearchwrapper.py | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/gnomemusic/grilowrappers/localsearchwrapper.py b/gnomemusic/grilowrappers/localsearchwrapper.py
index cfb8c01c1..65d841cc5 100644
--- a/gnomemusic/grilowrappers/localsearchwrapper.py
+++ b/gnomemusic/grilowrappers/localsearchwrapper.py
@@ -19,7 +19,6 @@ from gnomemusic.grilowrappers.localsearchplaylists import LocalSearchPlaylists
from gnomemusic.trackerwrapper import TrackerWrapper
import gnomemusic.utils as utils
if typing.TYPE_CHECKING:
- from gi.repository import TSparql
from gnomemusic.application import Application
from gnomemusic.grilowrappers.playlist import Playlist
CoreObject = Union[CoreAlbum, CoreArtist, CoreSong]
@@ -266,7 +265,7 @@ class LocalSearchWrapper(GObject.Object):
self._tsparql_playlists.check_smart_playlist_change()
def _on_notifier_event(
- self, notifier: TSparql.Notifier, service: str, graph: str,
+ self, notifier: Tsparql.Notifier, service: str, graph: str,
events: set[Tsparql.NotifierEvent]) -> None:
for event in events:
urn = event.get_urn()
@@ -479,7 +478,7 @@ class LocalSearchWrapper(GObject.Object):
async def _search_generic(
self, term: str, cancellable: Gio.Cancellable,
- statement: TSparql.SparqlStatement,
+ statement: Tsparql.SparqlStatement,
model: Gtk.FilterListModel) -> None:
"""Search and fill the model with results"""
async with self._notificationmanager:
--
GitLab