diff options
| author | Bob Halley <halley@dnspython.org> | 2020-08-11 07:42:07 -0700 |
|---|---|---|
| committer | Bob Halley <halley@dnspython.org> | 2020-08-11 07:42:07 -0700 |
| commit | 8e7f887a6d482c61b3c745f34c02fcbf07faaaf7 (patch) | |
| tree | 02a32f4648dd8315027b5cf6181cea1272a05f8d /dns/immutable.py | |
| parent | ca553435093b0dfae0eefc8d634529fe61ac8721 (diff) | |
| download | dnspython-8e7f887a6d482c61b3c745f34c02fcbf07faaaf7.tar.gz | |
lint
Diffstat (limited to 'dns/immutable.py')
| -rw-r--r-- | dns/immutable.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/dns/immutable.py b/dns/immutable.py index 7cc39dd..db7abbc 100644 --- a/dns/immutable.py +++ b/dns/immutable.py @@ -32,12 +32,13 @@ class Dict(collections.abc.Mapping): def __getitem__(self, key): return self._odict.__getitem__(key) - def __hash__(self): + def __hash__(self): # pylint: disable=invalid-hash-returned if self._hash is None: h = 0 for key in sorted(self._odict.keys()): h ^= hash(key) object.__setattr__(self, '_hash', h) + # this does return an int, but pylint doesn't figure that out return self._hash def __len__(self): |
