Skip to content

Commit 4422db5

Browse files
committed
Fix mypy errors and install dependencies on Fedora
1 parent 3389862 commit 4422db5

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

docs/developers/developers-setup.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
## Requirements
44

55
Diffuse depends on these projects:
6+
67
* Python 3.8+
78
* PyPi
89
* Cairo and GObject Introspection development headers
@@ -28,7 +29,7 @@ _Note: Tested on Debian 11 (Buster) and Ubuntu 20.04 (Focal)_
2829
<summary>Fedora</summary>
2930

3031
```sh
31-
sudo dnf install python-pip python3-cairo-devel python3-gobject-devel meson flatpak flatpak-builder
32+
sudo dnf install python-pip cairo-devel cairo-gobject-devel meson flatpak flatpak-builder
3233
```
3334

3435
_Note: Tested on Fedora 34_

src/diffuse/resources.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -318,7 +318,7 @@ def getOption(self, option: str) -> str:
318318

319319
def getOptionAsBool(self, option: str) -> bool:
320320
'''Get the option value, casted as a boolean.'''
321-
return util.strtobool(self.getOption(option))
321+
return bool(util.strtobool(self.getOption(option)))
322322

323323
# string resources
324324
def getString(self, symbol: str) -> str:

0 commit comments

Comments
 (0)