[totem/gnome-3-30] pythonconsole: Fix "has no member" pylint warnings



commit da8e0331e92740462f32891872e4a3288e2eb64e
Author: Bastien Nocera <hadess hadess net>
Date:   Wed Nov 14 18:42:40 2018 +0100

    pythonconsole: Fix "has no member" pylint warnings
    
    Instance of 'property' has no 'add_action' member (no-member)
    Instance of 'property' has no 'get_menu_section' member (no-member)
    Instance of 'property' has no 'add_action' member (no-member)

 src/plugins/pythonconsole/pythonconsole.py | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/src/plugins/pythonconsole/pythonconsole.py b/src/plugins/pythonconsole/pythonconsole.py
index 0e965033..265c15d5 100644
--- a/src/plugins/pythonconsole/pythonconsole.py
+++ b/src/plugins/pythonconsole/pythonconsole.py
@@ -74,15 +74,15 @@ class PythonConsolePlugin (GObject.Object, Peas.Activatable):
 
         action = Gio.SimpleAction.new ("python-console", None)
         action.connect ('activate', self._show_console)
-        self.totem.add_action (action)
+        self.totem.add_action (action) # pylint: disable=no-member
 
-        menu = self.totem.get_menu_section ("python-console-placeholder")
+        menu = self.totem.get_menu_section ("python-console-placeholder") # pylint: disable=no-member
         menu.append (_('_Python Console'), "app.python-console")
 
         if HAVE_RPDB2:
             action = Gio.SimpleAction.new ("python-debugger", None)
             action.connect ('activate', self._enable_debugging)
-            self.totem.add_action (action)
+            self.totem.add_action (action) # pylint: disable=no-member
             menu.append (_('Python Debugger'), "app.python-debugger")
 
     def _show_console (self, parameter, _action): # pylint: disable=W0613


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]