Commit 4f6c010d authored by Bram Schoenmakers's avatar Bram Schoenmakers

Suppress some pylint issues

The overrides are necessary to make the multicommands/widgets behave
well.
parent 2c321e68
...@@ -35,6 +35,7 @@ class MultiCommand(ExpressionCommand): ...@@ -35,6 +35,7 @@ class MultiCommand(ExpressionCommand):
self.is_expression = False self.is_expression = False
self.multi_mode = True self.multi_mode = True
# pylint: disable=no-self-use
def get_flags(self): def get_flags(self):
""" Default implementation of getting specific flags. """ """ Default implementation of getting specific flags. """
return ("", []) return ("", [])
......
...@@ -207,6 +207,7 @@ class TodoListWidget(urwid.LineBox): ...@@ -207,6 +207,7 @@ class TodoListWidget(urwid.LineBox):
p_row, p_row,
p_focus) p_focus)
# pylint: disable=no-self-use
def selectable(self): def selectable(self):
return True return True
......
...@@ -117,13 +117,15 @@ class TodoWidget(urwid.WidgetWrap): ...@@ -117,13 +117,15 @@ class TodoWidget(urwid.WidgetWrap):
super().__init__(self.widget) super().__init__(self.widget)
def keypress(self, p_size, p_key): # pylint: disable=no-self-use
def keypress(self, _, p_key):
""" """
Override keypress to prevent the wrapped Columns widget to Override keypress to prevent the wrapped Columns widget to
receive any key. receive any key.
""" """
return p_key return p_key
# pylint: disable=no-self-use
def selectable(self): def selectable(self):
# make sure that ListBox will highlight this widget # make sure that ListBox will highlight this widget
return True return True
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment