Skip to content

Commit

Permalink
fix: support python3.11 dataclasses
Browse files Browse the repository at this point in the history
  • Loading branch information
hyukkyukang committed May 7, 2023
1 parent 43ae550 commit 1fe6886
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 1fe6886

Please sign in to comment.