Skip to content

Commit

Permalink
simplify hash function
Browse files Browse the repository at this point in the history
  • Loading branch information
granthamtaylor committed Oct 24, 2024
1 parent c9e312e commit b63e9c6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion flytekit/types/file/file.py
Original file line number Diff line number Diff line change
Expand Up @@ -373,7 +373,7 @@ def __str__(self):
return self.path

def __hash__(self):
return hash(self._serialize()["path"])
return hash(str(self.path))

Check warning on line 376 in flytekit/types/file/file.py

View check run for this annotation

Codecov / codecov/patch

flytekit/types/file/file.py#L376

Added line #L376 was not covered by tests


class FlyteFilePathTransformer(AsyncTypeTransformer[FlyteFile]):
Expand Down

0 comments on commit b63e9c6

Please sign in to comment.