[totem/wip/hadess/pylint-warnings: 11/11] pythonconsole: Fix "has no member" pylint warnings
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [totem/wip/hadess/pylint-warnings: 11/11] pythonconsole: Fix "has no member" pylint warnings
- Date: Wed, 14 Nov 2018 17:45:45 +0000 (UTC)
commit 973375c2289204c26722f585f78aa70aafbec91e
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]