Skip to content

Commit

Permalink
Merge pull request #200 from hyukkyukang/main
Browse files Browse the repository at this point in the history
Make class DefaultVal hashable to ensure compatibility with Python 3.11 dataclasses package
  • Loading branch information
okhat authored May 7, 2023
2 parents 43ae550 + 1fe6886 commit 83658dc
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions colbert/infra/config/core_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,12 @@
@dataclass
class DefaultVal:
val: Any

def __hash__(self):
return hash(repr(self.val))

def __eq__(self, other):
self.val == other.val

@dataclass
class CoreConfig:
Expand Down

0 comments on commit 83658dc

Please sign in to comment.