mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-02-25 18:55:28 -06:00
pylint: make unsupported-assignment-operation check local
unsupported-assignment-operation is useful at times, make it only local, not global. https://pagure.io/freeipa/issue/6874 Reviewed-By: Alexander Bokovoy <abokovoy@redhat.com>
This commit is contained in:
@@ -999,7 +999,9 @@ class Collector(object):
|
||||
value = v + (value,)
|
||||
else:
|
||||
value = (v, value)
|
||||
# pylint: disable=unsupported-assignment-operation
|
||||
self.__options[name] = value
|
||||
# pylint: enable=unsupported-assignment-operation
|
||||
object.__setattr__(self, name, value)
|
||||
|
||||
def __todict__(self):
|
||||
|
||||
@@ -273,7 +273,9 @@ class Env(object):
|
||||
if type(value) not in (unicode, int, float, bool, type(None), DN):
|
||||
raise TypeError(key, value)
|
||||
object.__setattr__(self, key, value)
|
||||
# pylint: disable=unsupported-assignment-operation
|
||||
self.__d[key] = value
|
||||
# pylint: enable=unsupported-assignment-operation
|
||||
|
||||
def __getitem__(self, key):
|
||||
"""
|
||||
|
||||
Reference in New Issue
Block a user