diff options
author | Emmanuel Gil Peyrot <linkmauve@linkmauve.fr> | 2018-07-23 11:36:07 +0200 |
---|---|---|
committer | Emmanuel Gil Peyrot <linkmauve@linkmauve.fr> | 2018-07-23 11:36:07 +0200 |
commit | bb36177e4e747ecaf6856d8fe495431e9df2289e (patch) | |
tree | d0aefd193796cacff3bb0d1fa451e06656edfba3 /poezio/theming.py | |
parent | e4d9baa9544fc48ac9bda2e4e1931fe59191c97f (diff) | |
download | poezio-bb36177e4e747ecaf6856d8fe495431e9df2289e.tar.gz poezio-bb36177e4e747ecaf6856d8fe495431e9df2289e.tar.bz2 poezio-bb36177e4e747ecaf6856d8fe495431e9df2289e.tar.xz poezio-bb36177e4e747ecaf6856d8fe495431e9df2289e.zip |
yapf -ir
Diffstat (limited to 'poezio/theming.py')
-rwxr-xr-x | poezio/theming.py | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/poezio/theming.py b/poezio/theming.py index 8178ab6f..32ff8041 100755 --- a/poezio/theming.py +++ b/poezio/theming.py @@ -383,7 +383,8 @@ theme = Theme() # Each time we use a color tuple, we check if it has already been used. # If not we create a new color_pair and keep it in that dict, to use it # the next time. -curses_colors_dict = {} # type: Dict[Union[Tuple[int, int], Tuple[int, int, str]], int] +curses_colors_dict = { +} # type: Dict[Union[Tuple[int, int], Tuple[int, int, str]], int] # yapf: disable @@ -433,7 +434,8 @@ def read_tuple(_str: str) -> Tuple[Tuple[int, int], str]: @functools.lru_cache(maxsize=128) -def to_curses_attr(color_tuple: Union[Tuple[int, int], Tuple[int, int, str]]) -> int: +def to_curses_attr( + color_tuple: Union[Tuple[int, int], Tuple[int, int, str]]) -> int: """ Takes a color tuple (as defined at the top of this file) and returns a valid curses attr that can be passed directly to attron() or attroff() @@ -484,7 +486,8 @@ def get_theme() -> Theme: return theme -def update_themes_dir(option: Optional[str] = None, value: Optional[str] = None): +def update_themes_dir(option: Optional[str] = None, + value: Optional[str] = None): global load_path load_path = [] |