Make the Node api stricter, by only accepting nodes
Description
The Node
API used to be able to accept list
s and dict
s in addition to Node
s and handle them transparently.
This makes the line between both blurry and makes the Node
API unsane and harder to reason about.
Let's make the Node
API only work with Node
s, and convert objects to Node
when setting them on a Node
.
Edited by Benjamin Schubert