I think most of the time people will create trees with the same node class, and with the same data type as well. I can work on a PR if you think this is a good idea.
Hi,
that would be an improvement, we can experiment with it. Let's see where it takes us.
We need have tests and support for the TypedTree as well.
And also deal with Python version 3.8+ somehow, I think.
Hi, thanks for this library. I'm experimenting with it to represent a tree like structure and seems to fit well.
I think it would be nice to make use of generics for the
Node
andTree
class, something like:I think most of the time people will create trees with the same node class, and with the same data type as well. I can work on a PR if you think this is a good idea.