Closed cowo78 closed 4 years ago
I see that Tree.__contains__ current implementation is:
Tree.__contains__
return [node for node in self._nodes if node == identifier]
If I am not mistaken this:
object.__contains__
This is also trivial to fix and I can provide a patch, unless there's something I am missing
@cowo78, good point, this has been fixed in https://github.com/caesar0301/treelib/pull/129/
I see that
Tree.__contains__
current implementation is:If I am not mistaken this:
object.__contains__
is only expected to return True or FalseThis is also trivial to fix and I can provide a patch, unless there's something I am missing