From edb87893f9be6cf00175f60c5a0ed4b78b62afd5 Mon Sep 17 00:00:00 2001 From: aclist <92275929+aclist@users.noreply.github.com> Date: Fri, 23 Oct 2026 11:46:05 +0900 Subject: [PATCH] chore: clear typehinting errors --- dzgui/config/xdg.py | 2 +- dzgui/views/dialogs/wizard.py | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/dzgui/config/xdg.py b/dzgui/config/xdg.py index 77919f0..1d7f5b3 100644 --- a/dzgui/config/xdg.py +++ b/dzgui/config/xdg.py @@ -62,7 +62,7 @@ def get_xdg_paths() -> dict: resolved_paths = {} for path in xdg_paths: real_path = os.environ.get(path) - if is_sandboxed(): + if real_path is not None and is_sandboxed(): search_string = FLATPAK_ROOT_PATH + "/" real_path = real_path.replace(search_string, "") if real_path is not None and is_writeable(real_path): diff --git a/dzgui/views/dialogs/wizard.py b/dzgui/views/dialogs/wizard.py index b1d779b..2873eb9 100644 --- a/dzgui/views/dialogs/wizard.py +++ b/dzgui/views/dialogs/wizard.py @@ -543,7 +543,7 @@ class Assistant(Gtk.Assistant): sp = page.migrated_conf["default_steam_path"] self.page_shortcuts.set_steam_path(sp) self.config_values = self.page_migration.migrated_conf - return self.get_shortcuts_page() + return self.get_shortcut_page() case SteamPathPage(): path = page.get_path_from_radio() self.config_values["default_steam_path"] = path @@ -568,7 +568,7 @@ class Assistant(Gtk.Assistant): raise AttributeError("Trying to advance a non-canonical page") return index + 1 - def needs_flatpak_override(self) -> None: + def needs_flatpak_override(self) -> bool: if ( self.page_shortcuts.is_steam_checkbox_active() and FLATPAK_ROOT_PATH in self.config_values["default_steam_path"] @@ -701,7 +701,7 @@ class ShortcutCreationPage(OptionalPageMixin, EnumeratedWizardPage): # type: ig def set_steam_path(self, path: Path) -> None: self.steam_path = path - def is_steam_checkbox_active(self) -> None: + def is_steam_checkbox_active(self) -> bool: return self.steam_checkbox.get_active() def create_shortcuts(self) -> None: