bundles / papyri 0.0.10 / papyri / node_base / UnserializableNode
class
papyri.node_base:UnserializableNode
source: /papyri/node_base.py :115
Signature
class UnserializableNode ( * args : Any , ** kwargs : Any ) → None Members
Summary
Base for Node subclasses that are purely in-memory intermediates and must never cross the gen->disk boundary. Encoding one is a bug: the gen-time visitor was supposed to replace it before serialization.
Extended Summary
Both serialization paths refuse these nodes: cbor/to_json here cover the top-level case, and the recursive node_serializer.serialize checks _dont_serialise for nested ones. Subclasses override _why_unserializable to give a more specific reason.
Aliases
-
papyri.node_base.UnserializableNode