mirror of
https://github.com/aclist/dztui.git
synced 2026-10-25 12:12:31 +01:00
chore: clear typehinting errors resulting from mixins
Mirror to Codeberg / mirror-to-codeberg (push) Waiting to run
Mirror to Codeberg / mirror-to-codeberg (push) Waiting to run
This commit is contained in:
1 parent
71a0481600
commit
daa4aa0059
1 file changed
+4
-2
@@ -49,8 +49,10 @@ class PageNum(Enum):
|
|||||||
SHORTCUTS = 7
|
SHORTCUTS = 7
|
||||||
FINAL = 8
|
FINAL = 8
|
||||||
|
|
||||||
|
|
||||||
class OptionalPageMixin:
|
class OptionalPageMixin:
|
||||||
"""Marks optional pages as advanceable"""
|
"""Marks optional pages as advanceable"""
|
||||||
|
|
||||||
def _on_map(self, page: "ScrolledWizardPage") -> None:
|
def _on_map(self, page: "ScrolledWizardPage") -> None:
|
||||||
EMITTER.emit("step_complete")
|
EMITTER.emit("step_complete")
|
||||||
|
|
||||||
@@ -221,7 +223,7 @@ class APIValidationPage(ScrolledWizardPage):
|
|||||||
self.spinner.stop()
|
self.spinner.stop()
|
||||||
|
|
||||||
|
|
||||||
class BMValidationPage(OptionalPageMixin, APIValidationPage):
|
class BMValidationPage(OptionalPageMixin, APIValidationPage): # type: ignore
|
||||||
def __init__(self) -> None:
|
def __init__(self) -> None:
|
||||||
super().__init__(
|
super().__init__(
|
||||||
enum=PageNum.BM_API,
|
enum=PageNum.BM_API,
|
||||||
@@ -604,7 +606,7 @@ class CheckboxWithLabel(Gtk.Box):
|
|||||||
self.button.set_active(state)
|
self.button.set_active(state)
|
||||||
|
|
||||||
|
|
||||||
class ShortcutCreationPage(OptionalPageMixin, ScrolledWizardPage):
|
class ShortcutCreationPage(OptionalPageMixin, ScrolledWizardPage): # type: ignore
|
||||||
def __init__(self, shortcut: Path) -> None:
|
def __init__(self, shortcut: Path) -> None:
|
||||||
super().__init__(
|
super().__init__(
|
||||||
enum=PageNum.SHORTCUTS,
|
enum=PageNum.SHORTCUTS,
|
||||||
|
|||||||
Reference in new issue
Block a user