diff options
author | Emmanuel Gil Peyrot <linkmauve@linkmauve.fr> | 2018-10-24 16:28:55 +0200 |
---|---|---|
committer | Emmanuel Gil Peyrot <linkmauve@linkmauve.fr> | 2018-10-24 16:28:55 +0200 |
commit | cce1a4090a832a6fd2b7be4c610e469efb480b15 (patch) | |
tree | 1b44258871d331e9df9c6cadaea07b61468af9ff /poezio/windows/info_bar.py | |
parent | d967c246c8168d923fd3c3e5ada28d49f9d3ee8e (diff) | |
download | poezio-cce1a4090a832a6fd2b7be4c610e469efb480b15.tar.gz poezio-cce1a4090a832a6fd2b7be4c610e469efb480b15.tar.bz2 poezio-cce1a4090a832a6fd2b7be4c610e469efb480b15.tar.xz poezio-cce1a4090a832a6fd2b7be4c610e469efb480b15.zip |
Add __slots__ in most of the poezio.windows classes, to be more explicit about their data.
Diffstat (limited to 'poezio/windows/info_bar.py')
-rw-r--r-- | poezio/windows/info_bar.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/poezio/windows/info_bar.py b/poezio/windows/info_bar.py index 96382d0f..15821c10 100644 --- a/poezio/windows/info_bar.py +++ b/poezio/windows/info_bar.py @@ -16,6 +16,8 @@ from poezio.theming import get_theme, to_curses_attr class GlobalInfoBar(Win): + __slots__ = ('core') + def __init__(self, core) -> None: Win.__init__(self) self.core = core @@ -63,6 +65,8 @@ class GlobalInfoBar(Win): class VerticalGlobalInfoBar(Win): + __slots__ = ('core') + def __init__(self, core, scr) -> None: Win.__init__(self) self.core = core |