From b4d3b93da2e23cefb85dd98f1f7f9706aa0402d4 Mon Sep 17 00:00:00 2001 From: mathieui Date: Fri, 17 Aug 2018 02:16:03 +0200 Subject: Add typing information and reformat stuff --- poezio/theming.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'poezio/theming.py') 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__': -- cgit v1.2.3