[elbe-devel] [PATCH 22/75] debianize widgets button: Fix Pylint
Olivier Dion
dion at linutronix.de
Mon May 25 17:42:15 CEST 2020
42:23: W0613: (unused-argument)
48:4: R0913: (too-many-arguments)
48:26: W0613: (unused-argument)
48:39: W0613: (unused-argument)
48:47: W0613: (unused-argument)
48:52: W0613: (unused-argument)
Signed-off-by: Olivier Dion <dion at linutronix.de>
---
elbepack/debianize/widgets/button.py | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/elbepack/debianize/widgets/button.py b/elbepack/debianize/widgets/button.py
index 6e9663a9..7c07773e 100644
--- a/elbepack/debianize/widgets/button.py
+++ b/elbepack/debianize/widgets/button.py
@@ -39,13 +39,14 @@ class Button(WidgetWrap):
# documentation! Without this, the button would only text.
self._w.base_widget._selectable = True
- def keypress(self, size, key):
+ def keypress(self, _size, key):
if key == "enter":
emit_signal(self, TUISignal.CLICK)
return None
return key
- def mouse_event(self, size, event, button, col, row, focus):
+ # pylint: disable=too-many-arguments
+ def mouse_event(self, _size, event, _button, _col, _row, focus):
if focus and event == "mouse release":
emit_signal(self, TUISignal.CLICK)
return True
--
2.26.2
More information about the elbe-devel
mailing list