summaryrefslogtreecommitdiff
path: root/poezio/xdg.py
diff options
context:
space:
mode:
authormathieui <mathieui@mathieui.net>2018-07-22 14:23:39 +0200
committermathieui <mathieui@mathieui.net>2018-07-22 14:25:18 +0200
commite2414121af16474744d012cdb8466de6ae3136e4 (patch)
treee7d90b34da1d971e6e14cd8707837cab9200f0a3 /poezio/xdg.py
parent3cb8e33f938db6bb6e86dd349f8b56676b83556f (diff)
downloadpoezio-e2414121af16474744d012cdb8466de6ae3136e4.tar.gz
poezio-e2414121af16474744d012cdb8466de6ae3136e4.tar.bz2
poezio-e2414121af16474744d012cdb8466de6ae3136e4.tar.xz
poezio-e2414121af16474744d012cdb8466de6ae3136e4.zip
Add type hints here and there
Diffstat (limited to 'poezio/xdg.py')
-rw-r--r--poezio/xdg.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/poezio/xdg.py b/poezio/xdg.py
index e4b336a5..0b63998c 100644
--- a/poezio/xdg.py
+++ b/poezio/xdg.py
@@ -12,16 +12,17 @@ https://specifications.freedesktop.org/basedir-spec/basedir-spec-latest.html
from pathlib import Path
from os import environ
+from typing import Dict
# $HOME has already been checked to not be None in test_env().
DEFAULT_PATHS = {
'XDG_CONFIG_HOME': Path.home() / '.config',
'XDG_DATA_HOME': Path.home() / '.local' / 'share',
'XDG_CACHE_HOME': Path.home() / '.cache',
-}
+} # type: Dict[str, Path]
-def _get_directory(variable: str):
+def _get_directory(variable: str) -> Path:
"""
returns the default configuration directory path
"""