[elbe-devel] [PATCH 26/75] debianize widgets form: Fix Pylint
Olivier Dion
dion at linutronix.de
Mon May 25 17:42:19 CEST 2020
53:30: E1101: (no-member)
66:4: R0201: (no-self-use)
69:30: W0613: (unused-argument)
69:4: R0201: (no-self-use)
Signed-off-by: Olivier Dion <dion at linutronix.de>
---
elbepack/debianize/widgets/form.py | 8 +++++---
1 file changed, 5 insertions(+), 3 deletions(-)
diff --git a/elbepack/debianize/widgets/form.py b/elbepack/debianize/widgets/form.py
index 74cee445..6f27d2f4 100644
--- a/elbepack/debianize/widgets/form.py
+++ b/elbepack/debianize/widgets/form.py
@@ -63,8 +63,10 @@ class Form(Grid):
def get_form_data(self):
return {name: widget.get_data() for name, widget in self.named_widgets.items()}
- def on_submit(self, data):
+ # pylint: disable=no-self-use
+ def on_submit(self, _data):
raise Exception("Form can not submit")
- def sanitize_inputs(self, data):
- return False
+ # pylint: disable=no-self-use
+ def sanitize_inputs(self, _data):
+ return {}
--
2.26.2
More information about the elbe-devel
mailing list