diff --git a/.pylintrc b/.pylintrc index 6f9184431..f440b9857 100644 --- a/.pylintrc +++ b/.pylintrc @@ -59,4 +59,6 @@ defining-attr-methods=__init__,__new__,setUp max-args=10 [TYPECHECK] -ignored-classes=WebElementWrapper,AnsiCodes,UnsetObject +# MsgType added as WORKAROUND for +# https://bitbucket.org/logilab/pylint/issues/690/ +ignored-classes=WebElementWrapper,AnsiCodes,UnsetObject,MsgType diff --git a/qutebrowser/config/config.py b/qutebrowser/config/config.py index aea69494b..5d77f0227 100644 --- a/qutebrowser/config/config.py +++ b/qutebrowser/config/config.py @@ -560,7 +560,8 @@ class ConfigManager(QObject): def _after_set(self, changed_sect, changed_opt): """Clean up caches and emit signals after an option has been set.""" - self.get.cache_clear() + # WORKAROUND for https://bitbucket.org/logilab/pylint/issues/659/ + self.get.cache_clear() # pylint: disable=no-member self._changed(changed_sect, changed_opt) # Options in the same section and ${optname} interpolation. for optname, option in self.sections[changed_sect].items(): @@ -622,7 +623,8 @@ class ConfigManager(QObject): existed = optname in sectdict if existed: del sectdict[optname] - self.get.cache_clear() + # WORKAROUND for https://bitbucket.org/logilab/pylint/issues/659/ + self.get.cache_clear() # pylint: disable=no-member return existed @functools.lru_cache() diff --git a/qutebrowser/config/sections.py b/qutebrowser/config/sections.py index 2a20b5b80..f38603ccf 100644 --- a/qutebrowser/config/sections.py +++ b/qutebrowser/config/sections.py @@ -50,7 +50,8 @@ class Section: Return: The value, as value class. """ - return self.values[key] + # WORKAROUND for https://bitbucket.org/logilab/pylint/issues/685/ + return self.values[key] # pylint: disable=unsubscriptable-object def __iter__(self): """Iterate over all set values."""