summary refs log tree commit diff stats
diff options
context:
space:
mode:
authornfnty <git@nfnty.se>2016-12-24 06:34:42 +0100
committernfnty <git@nfnty.se>2017-01-17 05:59:03 +0100
commit62a776bbd80408c110e2d536ae406420c47f6bb1 (patch)
treed07c0dc8192b4f2619a37eadd274f25991c37c98
parentc60f4c1b7e9d4c86c536b1d1e511f31ed4dde250 (diff)
downloadranger-62a776bbd80408c110e2d536ae406420c47f6bb1.tar.gz
linting: `ranger.gui.curses_shortcuts.CursesShortcuts`: Init all attributes
-rw-r--r--.pylintrc2
-rw-r--r--ranger/gui/curses_shortcuts.py3
-rw-r--r--ranger/gui/displayable.py4
3 files changed, 7 insertions, 2 deletions
diff --git a/.pylintrc b/.pylintrc
index 8e87a39d..56f0ec0e 100644
--- a/.pylintrc
+++ b/.pylintrc
@@ -11,4 +11,4 @@ max-line-length = 99
 disable=locally-disabled,locally-enabled,missing-docstring,duplicate-code,fixme,broad-except,cyclic-import,attribute-defined-outside-init,access-member-before-definition
 
 [TYPECHECK]
-ignored-classes=ranger.core.actions.Actions,ranger.gui.curses_shortcuts.CursesShortcuts
+ignored-classes=ranger.core.actions.Actions
diff --git a/ranger/gui/curses_shortcuts.py b/ranger/gui/curses_shortcuts.py
index 398a9711..25a9d947 100644
--- a/ranger/gui/curses_shortcuts.py
+++ b/ranger/gui/curses_shortcuts.py
@@ -28,6 +28,9 @@ class CursesShortcuts(SettingsAware):
     addstr(*args) -- failsafe version of self.win.addstr(*args)
     """
 
+    def __init__(self):
+        self.win = None
+
     def addstr(self, *args):
         y, x = self.win.getyx()
 
diff --git a/ranger/gui/displayable.py b/ranger/gui/displayable.py
index 99d119aa..8c298440 100644
--- a/ranger/gui/displayable.py
+++ b/ranger/gui/displayable.py
@@ -43,8 +43,10 @@ class Displayable(  # pylint: disable=too-many-instance-attributes
         settings, fm -- inherited shared variables
     """
 
-    def __init__(self, win, env=None, fm=None, settings=None):
+    def __init__(self, win,  # pylint: disable=super-init-not-called
+                 env=None, fm=None, settings=None):
         from ranger.gui.ui import UI
+
         if env is not None:
             self.env = env
         if fm is not None: