mirror of
https://github.com/aclist/dztui.git
synced 2026-11-03 16:42:13 +01:00
chore: clear typehinting errors
This commit is contained in:
1 parent
d0934723e6
commit
4377f9de7c
7 files changed
+19
-12
No files matched your search
@@ -227,7 +227,7 @@ class FilterPanel(Gtk.Box):
|
||||
# state = self.default_filters[label]
|
||||
# check.set_active(state)
|
||||
|
||||
def _on_map_entry_keypress(self, entry: Gtk.Entry, event: Gdk.EventKey) -> None:
|
||||
def _on_map_entry_keypress(self, entry: Gtk.Entry, event: Gdk.EventKey) -> bool:
|
||||
match event.keyval:
|
||||
case Gdk.KEY_Escape:
|
||||
GLib.idle_add(self.restore_focus_to_treeview)
|
||||
@@ -237,6 +237,7 @@ class FilterPanel(Gtk.Box):
|
||||
"""
|
||||
text = self.maps_entry.get_text()
|
||||
self.maps_entry.set_position(len(text))
|
||||
return True
|
||||
case _:
|
||||
return False
|
||||
|
||||
|
||||
@@ -5,7 +5,7 @@ from gi.repository import Gtk, GLib # noqa E402
|
||||
|
||||
|
||||
class MapsCombo(Gtk.EntryCompletion):
|
||||
def __init__(self):
|
||||
def __init__(self) -> None:
|
||||
super().__init__(inline_completion=True)
|
||||
self.set_text_column(0)
|
||||
self.set_minimum_key_length(1)
|
||||
Reference in new issue
Block a user