Skip to content

Commit

Permalink
tools: make some things explicit to quiet LGTM warning
Browse files Browse the repository at this point in the history
  • Loading branch information
dgw committed Nov 18, 2019
1 parent ca39957 commit 46f184e
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions sopel/tools/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -636,6 +636,12 @@ def __contains__(self, key):
self.lock.release()
return result

# Needed to make it explicit that we don't care about the `lock` attribute
# when comparing/hashing SopelMemory objects.
__eq__ = dict.__eq__
__ne__ = dict.__ne__
__hash__ = dict.__hash__

@deprecated
def contains(self, key):
"""Check if ``key`` is in the memory
Expand Down

0 comments on commit 46f184e

Please sign in to comment.