From cc0354c8810029d8c88865f4e80d450de6f15159 Mon Sep 17 00:00:00 2001 From: aclist <92275929+aclist@users.noreply.github.com> Date: Wed, 11 Nov 2026 03:21:31 +0900 Subject: [PATCH 1/4] chore: drop unused imports --- dzgui/views/components/buttons.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/dzgui/views/components/buttons.py b/dzgui/views/components/buttons.py index 2fb62eb..a8c9faf 100644 --- a/dzgui/views/components/buttons.py +++ b/dzgui/views/components/buttons.py @@ -1,4 +1,4 @@ -from typing import Callable, Literal, Self, TYPE_CHECKING +from typing import Callable, Literal, Self, TYPE_CHECKING, Union from dzgui.util.clip import copy_clipboard from dzgui.strings import buttons @@ -12,7 +12,6 @@ from dzgui.const.icons import ( ICON_LIST_ADD, ICON_REFRESH, ICON_STEAM, - ICON_WARNING, ICON_WEB_BROWSER, ) from dzgui.strings import connect_panel From 134dcb6f0bb29a92adeebfa8927c43473acf9fb2 Mon Sep 17 00:00:00 2001 From: aclist <92275929+aclist@users.noreply.github.com> Date: Wed, 11 Nov 2026 03:27:12 +0900 Subject: [PATCH 2/4] fix: unused param blocking boot --- dzgui/views/components/buttons.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/dzgui/views/components/buttons.py b/dzgui/views/components/buttons.py index a8c9faf..53e89d8 100644 --- a/dzgui/views/components/buttons.py +++ b/dzgui/views/components/buttons.py @@ -98,9 +98,8 @@ class LargeIconTextButton(IconButton): class ClipboardButton(IconTextButton): - def __init__(self, controller: Union["Controller", None], func: Callable) -> None: + def __init__(self, func: Callable) -> None: super().__init__(ICON_CLIPBOARD, atomic_buttons.copy) - self.controller = controller self.connect("clicked", self._on_button_clicked, func) self.set_tooltip_text(buttons.clipboard_button) From 88f6b84bea4ead5cf73f62d3dc3c882a39a96c7c Mon Sep 17 00:00:00 2001 From: aclist <92275929+aclist@users.noreply.github.com> Date: Wed, 11 Nov 2026 03:29:23 +0900 Subject: [PATCH 3/4] fix: restore dropped typehint --- dzgui/views/components/buttons.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dzgui/views/components/buttons.py b/dzgui/views/components/buttons.py index 53e89d8..c073059 100644 --- a/dzgui/views/components/buttons.py +++ b/dzgui/views/components/buttons.py @@ -98,7 +98,7 @@ class LargeIconTextButton(IconButton): class ClipboardButton(IconTextButton): - def __init__(self, func: Callable) -> None: + def __init__(self, func: Callable[[], str]) -> None: super().__init__(ICON_CLIPBOARD, atomic_buttons.copy) self.connect("clicked", self._on_button_clicked, func) From c1630adee1c28b80d3efb93fcf681030815a626b Mon Sep 17 00:00:00 2001 From: aclist <92275929+aclist@users.noreply.github.com> Date: Wed, 11 Nov 2026 03:31:17 +0900 Subject: [PATCH 4/4] chore: update return value --- dzgui/managers/filter.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dzgui/managers/filter.py b/dzgui/managers/filter.py index 5204d35..38aaa7d 100644 --- a/dzgui/managers/filter.py +++ b/dzgui/managers/filter.py @@ -109,7 +109,7 @@ class FilterManager: for m in clean: self.append_map([m]) - def get_all_filters(self) -> tuple: + def get_all_filters(self) -> tuple[str, ...]: map_name = self.get_active_map_name() enabled = self.get_filters() kw = self.get_active_keyword()