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

@@ -174,6 +174,8 @@ class LDAPEntry(collections.MutableMapping):
'_not_list', '_orig_raw', '_raw_view',
'_single_value_view')
__hash__ = None
def __init__(self, _conn, _dn=None, _obj=None, **kwargs):
"""
LDAPEntry constructor.