mirror of
https://github.com/ARM-software/workload-automation.git
synced 2025-04-18 16:50:45 +01:00
framework/plugin: Calm pylint
This commit is contained in:
parent
56674aa3a9
commit
07243740d6
@ -65,6 +65,7 @@ class AttributeCollection(object):
|
|||||||
if v is not None:
|
if v is not None:
|
||||||
setattr(newp, a, v)
|
setattr(newp, a, v)
|
||||||
if not hasattr(newp, "_overridden"):
|
if not hasattr(newp, "_overridden"):
|
||||||
|
# pylint: disable=protected-access
|
||||||
newp._overridden = p._owner
|
newp._overridden = p._owner
|
||||||
self._attrs[p.name] = newp
|
self._attrs[p.name] = newp
|
||||||
else:
|
else:
|
||||||
@ -113,6 +114,7 @@ class AliasCollection(AttributeCollection):
|
|||||||
def _to_attrcls(self, p):
|
def _to_attrcls(self, p):
|
||||||
if isinstance(p, (list, tuple)):
|
if isinstance(p, (list, tuple)):
|
||||||
# must be in the form (name, {param: value, ...})
|
# must be in the form (name, {param: value, ...})
|
||||||
|
# pylint: disable=protected-access
|
||||||
p = self._attrcls(p[1], **p[1])
|
p = self._attrcls(p[1], **p[1])
|
||||||
elif not isinstance(p, self._attrcls):
|
elif not isinstance(p, self._attrcls):
|
||||||
raise ValueError('Invalid parameter value: {}'.format(p))
|
raise ValueError('Invalid parameter value: {}'.format(p))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user