diff options
author | Emmanuel Gil Peyrot <linkmauve@linkmauve.fr> | 2018-08-17 17:11:23 +0100 |
---|---|---|
committer | Emmanuel Gil Peyrot <linkmauve@linkmauve.fr> | 2018-08-17 18:36:43 +0100 |
commit | d3400669368537d016c6d821f8e85a9592f6d4d9 (patch) | |
tree | 6f6b1f5553ad9baff2abab2d9d3cb55830f5e3cb | |
parent | 4fc2338faafcdd3955fdd25ed772426f0ee53220 (diff) | |
download | poezio-d3400669368537d016c6d821f8e85a9592f6d4d9.tar.gz poezio-d3400669368537d016c6d821f8e85a9592f6d4d9.tar.bz2 poezio-d3400669368537d016c6d821f8e85a9592f6d4d9.tar.xz poezio-d3400669368537d016c6d821f8e85a9592f6d4d9.zip |
windows.info_bar: Type everything in this module.
-rw-r--r-- | poezio/windows/info_bar.py | 13 |
1 files changed, 7 insertions, 6 deletions
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] |