mirror of
https://github.com/aclist/dztui.git
synced 2026-10-26 12:42:34 +01:00
chore: clear typehinting errors
This commit is contained in:
1 parent
519e6c354d
commit
edb87893f9
2 files changed
+4
-4
No files matched your search
+1
-1
@@ -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):
|
||||
|
||||
@@ -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:
|
||||
|
||||
Reference in new issue
Block a user