Skip to main content

Node.set_metadata()

Replace this node’s metadata with a copy of metadata.

Usage

Source

Node.set_metadata(metadata)

Empty or None input drops back to the shared EMPTY_METADATA singleton, so nodes without metadata never own a dict.