chore: clear typehinting errors

This commit is contained in:
aclist committed 2026-05-13 20:13:06 +09:00
1 parent fe0a6711f0
commit 866c88fbb0
14 files changed
+65 -43

No files matched your search

+6 -2
View File
@@ -12,11 +12,15 @@ from gi.repository import Gtk, Gdk # noqa E402
logger = logging.getLogger(APP_NAME)
if TYPE_CHECKING:
from dzgui.const.enum import NotebookPage
from dzgui.controller.mc import Controller
from dzgui.controllers.emitter import Emitter
class ContextualButton(Gtk.Button):
def __init__(self, label, opens, tooltip, context):
def __init__(
self, label: str, opens: "NotebookPage", tooltip: str, context: ButtonType
) -> None:
super().__init__(
label=label,
tooltip_text=tooltip,
@@ -28,7 +32,7 @@ class ContextualButton(Gtk.Button):
class ButtonBox(Gtk.Box):
def __init__(self, controller) -> None:
def __init__(self, controller: "Controller") -> None:
super().__init__(
spacing=6,
margin_top=0,