summaryrefslogtreecommitdiff
path: root/poezio/theming.py
diff options
context:
space:
mode:
authormathieui <mathieui@mathieui.net>2018-08-15 14:21:59 +0200
committermathieui <mathieui@mathieui.net>2018-08-15 14:23:00 +0200
commit5ea82ac0af1cb855c9333796004c6a97da6b5ad4 (patch)
treef737e7e25012b76324ae03b591e19266a113a845 /poezio/theming.py
parentcccb1d97591966de1bab1b293294eefb17b90aac (diff)
downloadpoezio-5ea82ac0af1cb855c9333796004c6a97da6b5ad4.tar.gz
poezio-5ea82ac0af1cb855c9333796004c6a97da6b5ad4.tar.bz2
poezio-5ea82ac0af1cb855c9333796004c6a97da6b5ad4.tar.xz
poezio-5ea82ac0af1cb855c9333796004c6a97da6b5ad4.zip
Fix mypy errors, add type annotations
Diffstat (limited to 'poezio/theming.py')
-rwxr-xr-xpoezio/theming.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/poezio/theming.py b/poezio/theming.py
index 32ff8041..6491e03c 100755
--- a/poezio/theming.py
+++ b/poezio/theming.py
@@ -498,9 +498,9 @@ def update_themes_dir(option: Optional[str] = None,
load_path.append(default_dir)
# import from the user-defined prefs
- themes_dir = config.get('themes_dir')
- themes_dir = Path(
- themes_dir).expanduser() if themes_dir else xdg.DATA_HOME / 'themes'
+ themes_dir_str = config.get('themes_dir')
+ themes_dir = Path(themes_dir_str).expanduser(
+ ) if themes_dir_str else xdg.DATA_HOME / 'themes'
try:
themes_dir.mkdir(parents=True, exist_ok=True)
except OSError: