Skip to content

Commit

Permalink
remote tests fix
Browse files Browse the repository at this point in the history
local tests kept working
  • Loading branch information
e3rd committed Oct 24, 2024
1 parent ede9d4f commit 4d5e117
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions mininterface/tag.py
Original file line number Diff line number Diff line change
Expand Up @@ -321,6 +321,13 @@ def __repr__(self):
field_strings.append(f"{field.name}={v}")
return f"{self.__class__.__name__}({', '.join(field_strings)})"

def __hash__(self):
# Once upon a time, github actions test stopped working with no hash function here.
# The tests for commit c108a6d passed on 2024-10-16. But strangely, the very same commit failed on 2024-10-24.
# Python patch version did not change. On the local machine, the tests work great with no obstacle.
# Hence, I add a hash function with no intention yet.
return hash(str(self))

def _fetch_from(self, tag: "Self") -> "Self":
""" Fetches attributes from another instance.
(Skips the attributes that are already set.)
Expand Down

0 comments on commit 4d5e117

Please sign in to comment.