Add workarounds for pylint/astroid update.
This commit is contained in:
parent
0004bebc09
commit
6e392f0f09
@ -59,4 +59,6 @@ defining-attr-methods=__init__,__new__,setUp
|
|||||||
max-args=10
|
max-args=10
|
||||||
|
|
||||||
[TYPECHECK]
|
[TYPECHECK]
|
||||||
ignored-classes=WebElementWrapper,AnsiCodes,UnsetObject
|
# MsgType added as WORKAROUND for
|
||||||
|
# https://bitbucket.org/logilab/pylint/issues/690/
|
||||||
|
ignored-classes=WebElementWrapper,AnsiCodes,UnsetObject,MsgType
|
||||||
|
@ -560,7 +560,8 @@ class ConfigManager(QObject):
|
|||||||
|
|
||||||
def _after_set(self, changed_sect, changed_opt):
|
def _after_set(self, changed_sect, changed_opt):
|
||||||
"""Clean up caches and emit signals after an option has been set."""
|
"""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)
|
self._changed(changed_sect, changed_opt)
|
||||||
# Options in the same section and ${optname} interpolation.
|
# Options in the same section and ${optname} interpolation.
|
||||||
for optname, option in self.sections[changed_sect].items():
|
for optname, option in self.sections[changed_sect].items():
|
||||||
@ -622,7 +623,8 @@ class ConfigManager(QObject):
|
|||||||
existed = optname in sectdict
|
existed = optname in sectdict
|
||||||
if existed:
|
if existed:
|
||||||
del sectdict[optname]
|
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
|
return existed
|
||||||
|
|
||||||
@functools.lru_cache()
|
@functools.lru_cache()
|
||||||
|
@ -50,7 +50,8 @@ class Section:
|
|||||||
Return:
|
Return:
|
||||||
The value, as value class.
|
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):
|
def __iter__(self):
|
||||||
"""Iterate over all set values."""
|
"""Iterate over all set values."""
|
||||||
|
Loading…
Reference in New Issue
Block a user