From d3400669368537d016c6d821f8e85a9592f6d4d9 Mon Sep 17 00:00:00 2001 From: Emmanuel Gil Peyrot Date: Fri, 17 Aug 2018 17:11:23 +0100 Subject: windows.info_bar: Type everything in this module. --- poezio/windows/info_bar.py | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) (limited to 'poezio/windows') diff --git a/poezio/windows/info_bar.py b/poezio/windows/info_bar.py index f4ba1f1f..033f78aa 100644 --- a/poezio/windows/info_bar.py +++ b/poezio/windows/info_bar.py @@ -11,16 +11,17 @@ log = logging.getLogger(__name__) import curses from poezio.config import config +from poezio.core import Core from poezio.windows.base_wins import Win from poezio.theming import get_theme, to_curses_attr class GlobalInfoBar(Win): - def __init__(self, core): + def __init__(self, core: Core) -> None: Win.__init__(self) - self.core = core + self.core = core # type: Core - def refresh(self): + def refresh(self) -> None: log.debug('Refresh: %s', self.__class__.__name__) self._win.erase() self.addstr(0, 0, "[", @@ -63,12 +64,12 @@ class GlobalInfoBar(Win): class VerticalGlobalInfoBar(Win): - def __init__(self, core, scr): + def __init__(self, core: Core, scr) -> None: Win.__init__(self) - self.core = core + self.core = core # type: Core self._win = scr - def refresh(self): + def refresh(self) -> None: height, width = self._win.getmaxyx() self._win.erase() sorted_tabs = [tab for tab in self.core.tabs if tab] -- cgit v1.2.3