chore: clear typehinting errors

This commit is contained in:
aclist committed 2026-05-05 23:37:31 +09:00
1 parent e64feac425
commit 25640751a5
23 files changed
+86 -105

No files matched your search

+2 -2
View File
@@ -1,4 +1,4 @@
from typing import TYPE_CHECKING
from typing import Self, TYPE_CHECKING
from dzgui.const.enum import ModButton
from dzgui.const.constants import NO_EXPAND, FILL, NO_PADDING
@@ -64,7 +64,7 @@ class ModSelectionPanel(Gtk.Box):
self.connect("map", self._reinit_button)
def _reinit_button(self, s) -> None:
def _reinit_button(self, widget: Self) -> None:
for child in self.stale_panel.get_children():
if child.enum == ModButton.UNHIGHLIGHT_STALE:
child.set_sensitive(False)