You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It seems the children are set as a list, but are returned as a tuple.
I think it would make more sense to set/get it as the same type, probably a tuple.
It makes the following (no-op looking) code illegal:
node=Node("node")
node.children=node.children# => TypeError: Children input should be list type, received input type <class 'tuple'>
Thanks for spotting this issue! I have modified children to take in Iterable which can accept lists and tuples (and other iterable types) in v0.9.5 (unreleased yet but it is in the v0.9.5 branch). Do check it out and see if there are any other issues if not v0.9.5 will be rolled out soon 😃
It seems the children are set as a list, but are returned as a tuple.
I think it would make more sense to set/get it as the same type, probably a tuple.
It makes the following (no-op looking) code illegal:
It's risky too, because of the following:
The text was updated successfully, but these errors were encountered: