summaryrefslogtreecommitdiff
path: root/poezio/windows/misc.py
diff options
context:
space:
mode:
Diffstat (limited to 'poezio/windows/misc.py')
-rw-r--r--poezio/windows/misc.py12
1 files changed, 9 insertions, 3 deletions
diff --git a/poezio/windows/misc.py b/poezio/windows/misc.py
index e6596622..a621b61d 100644
--- a/poezio/windows/misc.py
+++ b/poezio/windows/misc.py
@@ -19,9 +19,13 @@ class VerticalSeparator(Win):
refreshed only on resize, but never on refresh, for efficiency
"""
+ __slots__ = ()
+
def rewrite_line(self) -> None:
- self._win.vline(0, 0, curses.ACS_VLINE, self.height,
- to_curses_attr(get_theme().COLOR_VERTICAL_SEPARATOR))
+ self._win.vline(
+ 0, 0, curses.ACS_VLINE, self.height,
+ to_curses_attr(get_theme().COLOR_VERTICAL_SEPARATOR)
+ ) # type: ignore
self._refresh()
def refresh(self) -> None:
@@ -30,10 +34,12 @@ class VerticalSeparator(Win):
class SimpleTextWin(Win):
+ __slots__ = ('_text', 'built_lines')
+
def __init__(self, text) -> None:
Win.__init__(self)
self._text = text
- self.built_lines = [] # type: List[str]
+ self.built_lines: List[str] = []
def rebuild_text(self) -> None:
"""