fix #6341 - disallow session/config in Node.from_parent

This commit is contained in:
Ronny Pfannschmidt
2019-12-31 20:20:28 +01:00
parent 466bbbf8e8
commit 8ba0b7bc2a
6 changed files with 49 additions and 9 deletions
+4
View File
@@ -4,3 +4,7 @@ Instead they are new constructed via ``Node.from_parent``.
This transitional mechanism enables us to detangle the very intensely
entangled ``Node`` relationships by enforcing more controlled creation/configruation patterns.
As part of that session/config are already disallowed parameters and as we work on the details we might need disallow a few more as well.
Subclasses are expected to use `super().from_parent` if they intend to expand the creation of `Nodes`.