Fix mypy errors and install dependencies on Fedora

This commit is contained in:
Romain Failliot 2022-10-23 15:42:38 -04:00
parent 3389862ea1
commit 4422db52a1
2 changed files with 3 additions and 2 deletions

View File

@ -3,6 +3,7 @@
## Requirements ## Requirements
Diffuse depends on these projects: Diffuse depends on these projects:
* Python 3.8+ * Python 3.8+
* PyPi * PyPi
* Cairo and GObject Introspection development headers * Cairo and GObject Introspection development headers
@ -28,7 +29,7 @@ _Note: Tested on Debian 11 (Buster) and Ubuntu 20.04 (Focal)_
<summary>Fedora</summary> <summary>Fedora</summary>
```sh ```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_ _Note: Tested on Fedora 34_

View File

@ -318,7 +318,7 @@ class Resources:
def getOptionAsBool(self, option: str) -> bool: def getOptionAsBool(self, option: str) -> bool:
'''Get the option value, casted as a boolean.''' '''Get the option value, casted as a boolean.'''
return util.strtobool(self.getOption(option)) return bool(util.strtobool(self.getOption(option)))
# string resources # string resources
def getString(self, symbol: str) -> str: def getString(self, symbol: str) -> str: