summaryrefslogtreecommitdiff
path: root/poezio/theming.py
diff options
context:
space:
mode:
authorEmmanuel Gil Peyrot <linkmauve@linkmauve.fr>2022-08-21 17:34:07 +0200
committerEmmanuel Gil Peyrot <linkmauve@linkmauve.fr>2022-08-21 20:57:26 +0200
commitf3a751b3953032a8eb73af96a725cef902bde020 (patch)
tree7eb9173caaec479ab124be24ed605814ae5d23b0 /poezio/theming.py
parent940f5e0c8a695048e6b7dfd3dd13e49e0c3476a5 (diff)
downloadpoezio-f3a751b3953032a8eb73af96a725cef902bde020.tar.gz
poezio-f3a751b3953032a8eb73af96a725cef902bde020.tar.bz2
poezio-f3a751b3953032a8eb73af96a725cef902bde020.tar.xz
poezio-f3a751b3953032a8eb73af96a725cef902bde020.zip
mypy: Type some more things
This lets us pass under mypy 0.971, and is yet another step towards mypyc compatibility perhaps.
Diffstat (limited to 'poezio/theming.py')
-rwxr-xr-xpoezio/theming.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/poezio/theming.py b/poezio/theming.py
index 712a44ab..187d07c5 100755
--- a/poezio/theming.py
+++ b/poezio/theming.py
@@ -1,3 +1,4 @@
+#!/usr/bin/env python3
# Copyright 2010-2011 Florent Le Coz <louiz@louiz.org>
#
# This file is part of Poezio.
@@ -391,7 +392,7 @@ class Theme:
}
@property
- def ccg_palette(self):
+ def ccg_palette(self) -> Optional[Dict[float, int]]:
prepare_ccolor_palette(self)
return self.CCG_PALETTE