Fix mypy errors and install dependencies on Fedora
This commit is contained in:
parent
3389862ea1
commit
4422db52a1
|
@ -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_
|
||||||
|
|
|
@ -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:
|
||||||
|
|
Loading…
Reference in New Issue