Skip to content

Commit c75cd4d

Browse files
committed
:rotating_lights: Resolve eq-without-hash for PermissionMode
1 parent feb8097 commit c75cd4d

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

src/cpac/utils/utils.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -166,6 +166,10 @@ def __ge__(self, other):
166166
return True
167167
return False
168168

169+
def __hash__(self):
170+
"""Return hash for ``PermissionMode``."""
171+
return hash(self.mode)
172+
169173
def __lt__(self, other):
170174
"""Return True if self.mode < other.mode, False otherwise."""
171175
for permission in (self, other):

0 commit comments

Comments
 (0)