migrate all projects to python 3.13 linting

This commit is contained in:
Jörg Thalheim
2025-07-04 17:18:13 +02:00
parent 0d1e1d9796
commit cb89457731
10 changed files with 13 additions and 13 deletions

View File

@@ -12,7 +12,7 @@ from gi.repository import Adw, Gio, GObject, Gtk
ListItem = TypeVar("ListItem", bound=GObject.Object)
def create_details_list(
def create_details_list[ListItem: GObject.Object](
model: Gio.ListStore, render_row: Callable[[Gtk.ListBox, ListItem], Gtk.Widget]
) -> Gtk.ListBox:
boxed_list = Gtk.ListBox()

View File

@@ -32,7 +32,7 @@ ListItem = TypeVar("ListItem", bound=GObject.Object)
CustomStore = TypeVar("CustomStore", bound=Gio.ListModel)
def create_boxed_list(
def create_boxed_list[CustomStore: Gio.ListModel, ListItem: GObject.Object](
model: CustomStore,
render_row: Callable[[Gtk.ListBox, ListItem], Gtk.Widget],
) -> Gtk.ListBox: