pylint: disable __hash__ for some classes

pylint requires all classes implementing __eq__ to also implement
__hash__. We disable hashing for the classes that miss the ability,
should they ever be required to use it, it can be implemented then.

https://pagure.io/freeipa/issue/6874

Reviewed-By: Alexander Bokovoy <abokovoy@redhat.com>
This commit is contained in:
Stanislav Laznicka
2017-08-22 14:12:40 +02:00
parent ae0bd124f5
commit fab589d7f5
4 changed files with 7 additions and 0 deletions

View File

@@ -46,6 +46,8 @@ class ACI(object):
entry in LDAP. Has methods to parse an ACI string and export to an
ACI String.
"""
__hash__ = None
def __init__(self,acistr=None):
self.name = None
self.source_group = None