Skip to content

Commit 021ce96

Browse files
committed
fix(yaffs): fix PLW1641 reported by ruff v0.12.0
1 parent 42f4ec8 commit 021ce96

File tree

1 file changed

+3
-0
lines changed
  • python/unblob/handlers/filesystem

1 file changed

+3
-0
lines changed

python/unblob/handlers/filesystem/yaffs.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -213,6 +213,9 @@ def __gt__(self, other):
213213
def __eq__(self, other):
214214
return self.object_id == other.object_id
215215

216+
def __hash__(self):
217+
return hash(self.object_id)
218+
216219
def __str__(self):
217220
return f"{self.object_id}: {self.name}"
218221

0 commit comments

Comments
 (0)