Skip to content
This repository has been archived by the owner on Dec 10, 2024. It is now read-only.

Commit

Permalink
fix hash/eq bug in graph core
Browse files Browse the repository at this point in the history
  • Loading branch information
NoR8quoh1r committed Nov 8, 2024
1 parent 93eeb78 commit 4533df5
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions src/faebryk/core/graphinterface.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,14 +68,6 @@ def nodes_of_type[T: "Node"](self, t: type[T]) -> set[T]:
def nodes_of_types(self, t: tuple[type["Node"], ...]) -> set["Node"]:
return {n for n in self.node_projection() if isinstance(n, t)}

def __hash__(self) -> int:
return id(self())

def __eq__(self, other: object) -> bool:
if not isinstance(other, Graph):
return False
return self() == other()


class GraphInterface(FaebrykLibObject):
GT = Graph
Expand Down

0 comments on commit 4533df5

Please sign in to comment.