From f3a751b3953032a8eb73af96a725cef902bde020 Mon Sep 17 00:00:00 2001 From: Emmanuel Gil Peyrot Date: Sun, 21 Aug 2022 17:34:07 +0200 Subject: mypy: Type some more things MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This lets us pass under mypy 0.971, and is yet another step towards mypyc compatibility perhaps. --- poezio/theming.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'poezio/theming.py') 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 # # 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 -- cgit v1.2.3