From 4422db52a1654ddcf0c28d4a0c3960ea4763b2cc Mon Sep 17 00:00:00 2001 From: Romain Failliot Date: Sun, 23 Oct 2022 15:42:38 -0400 Subject: [PATCH] Fix mypy errors and install dependencies on Fedora --- docs/developers/developers-setup.md | 3 ++- src/diffuse/resources.py | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/docs/developers/developers-setup.md b/docs/developers/developers-setup.md index ea26865..ad4ea7f 100644 --- a/docs/developers/developers-setup.md +++ b/docs/developers/developers-setup.md @@ -3,6 +3,7 @@ ## Requirements Diffuse depends on these projects: + * Python 3.8+ * PyPi * Cairo and GObject Introspection development headers @@ -28,7 +29,7 @@ _Note: Tested on Debian 11 (Buster) and Ubuntu 20.04 (Focal)_ Fedora ```sh -sudo dnf install python-pip python3-cairo-devel python3-gobject-devel meson flatpak flatpak-builder +sudo dnf install python-pip cairo-devel cairo-gobject-devel meson flatpak flatpak-builder ``` _Note: Tested on Fedora 34_ diff --git a/src/diffuse/resources.py b/src/diffuse/resources.py index b5919d4..302c385 100644 --- a/src/diffuse/resources.py +++ b/src/diffuse/resources.py @@ -318,7 +318,7 @@ class Resources: def getOptionAsBool(self, option: str) -> bool: '''Get the option value, casted as a boolean.''' - return util.strtobool(self.getOption(option)) + return bool(util.strtobool(self.getOption(option))) # string resources def getString(self, symbol: str) -> str: