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/bookmark_forms.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/bookmark_forms.py')
-rw-r--r-- | poezio/windows/bookmark_forms.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/poezio/windows/bookmark_forms.py b/poezio/windows/bookmark_forms.py index b7875e3c..2940ef04 100644 --- a/poezio/windows/bookmark_forms.py +++ b/poezio/windows/bookmark_forms.py @@ -152,6 +152,9 @@ class BookmarkAutojoinWin(FieldInputMixin): class BookmarksWin(Win): + __slots__ = ('scroll_pos', '_current_input', 'current_horizontal_input', + '_bookmarks', 'lines') + def __init__(self, bookmarks: BookmarkList, height: int, width: int, y: int, x: int) -> None: self._win = base_wins.TAB_WIN.derwin(height, width, y, x) self.scroll_pos = 0 |