[meld] misc: flake8 corrections



commit 60bc75f775850867011c4df97b288193104a01ff
Author: Kai Willadsen <kai willadsen gmail com>
Date:   Sun Jan 6 12:56:41 2019 +1000

    misc: flake8 corrections

 meld/misc.py | 9 ++++++---
 1 file changed, 6 insertions(+), 3 deletions(-)
---
diff --git a/meld/misc.py b/meld/misc.py
index 367b7079..8b712fff 100644
--- a/meld/misc.py
+++ b/meld/misc.py
@@ -28,15 +28,15 @@ from pathlib import PurePath
 from typing import (
     AnyStr,
     Callable,
-    List,
     Generator,
-    Union,
+    List,
     Mapping,
     Optional,
     Pattern,
     Sequence,
     Tuple,
     TYPE_CHECKING,
+    Union,
 )
 
 from gi.repository import Gdk
@@ -243,7 +243,10 @@ def colour_lookup_with_fallback(name: str, attribute: str) -> Gdk.RGBA:
     return colour
 
 
-def get_common_theme() -> Tuple[Mapping[str, Gdk.RGBA], Mapping[str, Gdk.RGBA]]:
+ColourMap = Mapping[str, Gdk.RGBA]
+
+
+def get_common_theme() -> Tuple[ColourMap, ColourMap]:
     lookup = colour_lookup_with_fallback
     fill_colours = {
         "insert": lookup("meld:insert", "background"),


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]