From 8e7f887a6d482c61b3c745f34c02fcbf07faaaf7 Mon Sep 17 00:00:00 2001 From: Bob Halley Date: Tue, 11 Aug 2020 07:42:07 -0700 Subject: [PATCH] lint --- dns/immutable.py | 3 ++- dns/versioned.py | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/dns/immutable.py b/dns/immutable.py index 7cc39dd0..db7abbcc 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): diff --git a/dns/versioned.py b/dns/versioned.py index 45ede79b..cc2f7148 100644 --- a/dns/versioned.py +++ b/dns/versioned.py @@ -201,7 +201,7 @@ class Zone(dns.zone.Zone): self._write_waiters = collections.deque() self._commit_version_unlocked(WritableVersion(self), origin) - def reader(self, id=None, serial=None): + def reader(self, id=None, serial=None): # pylint: disable=arguments-differ if id is not None and serial is not None: raise ValueError('cannot specify both id and serial') with self.version_lock: -- 2.47.3