diff options
Diffstat (limited to 'poezio/tabs/listtab.py')
-rw-r--r-- | poezio/tabs/listtab.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/poezio/tabs/listtab.py b/poezio/tabs/listtab.py index 07b3fe05..049f7076 100644 --- a/poezio/tabs/listtab.py +++ b/poezio/tabs/listtab.py @@ -1,5 +1,5 @@ """ -A generic tab that displays a serie of items in a scrollable, searchable, +A generic tab that displays a series of items in a scrollable, searchable, sortable list. It should be inherited, to actually provide methods that insert items in the list, and that lets the user interact with them. """ @@ -18,8 +18,8 @@ log = logging.getLogger(__name__) class ListTab(Tab): - plugin_commands = {} # type: Dict[str, Command] - plugin_keys = {} # type: Dict[str, Callable] + plugin_commands: Dict[str, Command] = {} + plugin_keys: Dict[str, Callable] = {} def __init__(self, core, name, help_message, header_text, cols): """Parameters: @@ -34,7 +34,7 @@ class ListTab(Tab): Tab.__init__(self, core) self.state = 'normal' self._error_message = '' - self.name = name + self._name = name columns = collections.OrderedDict() for col, num in cols: columns[col] = num |