Skip to content

Commit 29c1b6c

Browse files
authored
fixing hash (#33)
1 parent 77dc4b0 commit 29c1b6c

File tree

1 file changed

+4
-1
lines changed
  • src/bloqade/shuttle/dialects/filled

1 file changed

+4
-1
lines changed

src/bloqade/shuttle/dialects/filled/types.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ def __post_init__(self):
3434
)
3535

3636
def __hash__(self):
37-
return hash((FilledGrid, self.parent, self.vacancies))
37+
return hash((self.parent, self.vacancies))
3838

3939
def __eq__(self, other: Any) -> bool:
4040
return (
@@ -43,6 +43,9 @@ def __eq__(self, other: Any) -> bool:
4343
and self.vacancies == other.vacancies
4444
)
4545

46+
def is_equal(self, other: Any) -> bool:
47+
return self == other
48+
4649
@cached_property
4750
def positions(self) -> ilist.IList[tuple[float, float], Any]:
4851
positions = tuple(

0 commit comments

Comments
 (0)