fix: removed
This commit is contained in:
parent
130f5edcfe
commit
b30824baf9
@ -185,17 +185,6 @@ class Node(Generator[P]):
|
||||
|
||||
super(Node, self).__init__(**kwargs)
|
||||
|
||||
def hash_key(self, key: Any) -> int:
|
||||
try:
|
||||
key = int(key)
|
||||
except ValueError:
|
||||
pass
|
||||
|
||||
if isinstance(key, str):
|
||||
return hash(unify(key))
|
||||
|
||||
return hash(key)
|
||||
|
||||
@property
|
||||
def is_root(self) -> bool:
|
||||
return self.parent is None
|
||||
|
Loading…
Reference in New Issue
Block a user