CommitOpcodeMapUnion

class dsviper.CommitOpcodeMapUnion

Bases: CommitOpcode

Adds entries to the map at a path, replacing the keys already there.

Note: Not directly instantiable.

arguments(definitions: DefinitionsConst, *, encoded: bool = True) → tuple[Attachment, ValueKey, PathConst, ValueMap]

Return (attachment, key, path, value), resolving the ids the opcode carries against definitions.

value is a container, so it is a Value whatever encoded is.

key() → CommitOpcodeKey

Return the CommitOpcodeKey the opcode applies to - the attachment, the instance and its concept.

path() → PathConst

Return the Path inside the document the opcode writes at.

type() → str

Return ‘Map_Union’, the name of this opcode’s kind.

value() → ValueMap

Return the entries the opcode adds to the map.