mirror of
https://github.com/aclist/dztui.git
synced 2026-10-25 12:12:31 +01:00
chore: clear typehinting errors
This commit is contained in:
1 parent
72e3054afb
commit
7a8ccca317
2 files changed
+6
-2
No files matched your search
@@ -313,6 +313,8 @@ class ExceptionDialog(TextBufferDialog):
|
||||
|
||||
def _on_map(self, dialog: Self) -> None:
|
||||
button = self.get_widget_for_response(Gtk.ResponseType.OK)
|
||||
if button is None:
|
||||
return
|
||||
button.grab_focus()
|
||||
|
||||
def _on_page_changed(
|
||||
|
||||
@@ -66,7 +66,7 @@ class ServerTreeView(ContextMixin, TreeView): # type: ignore
|
||||
self.handler_id: int
|
||||
self.queue: Queue = Queue()
|
||||
|
||||
self.seen_cache: list[str] = []
|
||||
self.seen_cache: list[Record] = []
|
||||
|
||||
prefs = self.controller.get_prefs()
|
||||
columns = prefs.paths.columns
|
||||
@@ -350,7 +350,9 @@ class ServerTreeView(ContextMixin, TreeView): # type: ignore
|
||||
_ping = ping(record.ip, record.qport)
|
||||
GLib.idle_add(self._redraw, model, _iter, _ping)
|
||||
|
||||
def _redraw(self, model: Gtk.TreeModel, _iter: Gtk.TreeIter, _ping: int) -> None:
|
||||
def _redraw(
|
||||
self, model: FastInsertListStore, _iter: Gtk.TreeIter, _ping: int
|
||||
) -> None:
|
||||
ping_column = 9
|
||||
model.set(_iter, ping_column, _ping)
|
||||
self.queue_draw()
|
||||
|
||||
Reference in new issue
Block a user