Skip to content

Commit

Permalink
add hash method to flytefile
Browse files Browse the repository at this point in the history
  • Loading branch information
granthamtaylor committed Oct 23, 2024
1 parent 5a8941b commit d6fc3c4
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions flytekit/types/file/file.py
Original file line number Diff line number Diff line change
Expand Up @@ -372,6 +372,9 @@ def __repr__(self):
def __str__(self):
return self.path

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


class FlyteFilePathTransformer(AsyncTypeTransformer[FlyteFile]):
def __init__(self):
Expand Down

0 comments on commit d6fc3c4

Please sign in to comment.