From 0b3c0adf1e5e14cb134eb51b0aba43c581d6f772 Mon Sep 17 00:00:00 2001 From: JT Date: Tue, 12 Sep 2023 11:06:15 +0100 Subject: [PATCH] Node is frozen and hashable --- graph.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/graph.py b/graph.py index b0ee020..fd98ec9 100644 --- a/graph.py +++ b/graph.py @@ -9,7 +9,7 @@ import typing -@dataclass +@dataclass(frozen=True) class Node: table:str primary_key:typing.Any