diff options
-rw-r--r-- | .pylintrc | 2 | ||||
-rw-r--r-- | ranger/gui/curses_shortcuts.py | 3 | ||||
-rw-r--r-- | ranger/gui/displayable.py | 4 |
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: |