migrate all projects to python 3.13 linting
This commit is contained in:
@@ -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()
|
||||
|
||||
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user