[elbe-devel] [PATCH 24/75] debianize widgets radio: Fix Pylint

Olivier Dion dion at linutronix.de
Mon May 25 17:42:17 CEST 2020


16:0: R0205: (useless-object-inheritance)
50:4: R1710: (inconsistent-return-statements)

Signed-off-by: Olivier Dion <dion at linutronix.de>
---
 elbepack/debianize/widgets/radio.py | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/elbepack/debianize/widgets/radio.py b/elbepack/debianize/widgets/radio.py
index 85730480..5de0ac49 100644
--- a/elbepack/debianize/widgets/radio.py
+++ b/elbepack/debianize/widgets/radio.py
@@ -12,7 +12,8 @@ from urwid import (
 
 from elbepack.debianize.widgets.grid import Grid
 
-
+# TODO:py3 Remove object inheritance
+# pylint: disable=useless-object-inheritance
 class RadioPolicy(object):
     HORIZONTAL = 0
     VERTICAL   = 1
@@ -51,3 +52,4 @@ class RadioGroup(Grid):
         for radio in self.radio_group:
             if radio.state:
                 return self.enum_type.__dict__[radio.label.upper()]
+        return None
-- 
2.26.2




More information about the elbe-devel mailing list