summaryrefslogtreecommitdiff
path: root/poezio/theming.py
diff options
context:
space:
mode:
authormathieui <mathieui@mathieui.net>2018-08-17 02:16:03 +0200
committermathieui <mathieui@mathieui.net>2018-08-17 02:16:03 +0200
commitb4d3b93da2e23cefb85dd98f1f7f9706aa0402d4 (patch)
treef8c489bbf65a9a4a24d268281d3da798bbfe3ba2 /poezio/theming.py
parent6ccf7ea71d5e5194dd036a90e36c0db6a0ec757a (diff)
downloadpoezio-b4d3b93da2e23cefb85dd98f1f7f9706aa0402d4.tar.gz
poezio-b4d3b93da2e23cefb85dd98f1f7f9706aa0402d4.tar.bz2
poezio-b4d3b93da2e23cefb85dd98f1f7f9706aa0402d4.tar.xz
poezio-b4d3b93da2e23cefb85dd98f1f7f9706aa0402d4.zip
Add typing information and reformat stuff
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 6491e03c..db1ccb39 100755
--- a/poezio/theming.py
+++ b/poezio/theming.py
@@ -281,7 +281,7 @@ class Theme:
(224, -1), (225, -1), (226, -1), (227, -1)]
# XEP-0392 consistent color generation palette placeholder
# it’s generated on first use when accessing the ccg_palette property
- CCG_PALETTE = None
+ CCG_PALETTE = None # type: Optional[Dict[float, int]]
CCG_Y = 0.5**0.45
# yapf: enable
@@ -566,8 +566,8 @@ def reload_theme() -> Optional[str]:
if hasattr(new_theme, 'theme'):
theme = new_theme.theme
prepare_ccolor_palette(theme)
- else:
- return 'No theme present in the theme file'
+ return None
+ return 'No theme present in the theme file'
if __name__ == '__main__':