MCPcopy Create free account
hub / github.com/apache/qpid-proton / instructions

Method instructions

python/proton/_message.py:436–447  ·  view source on GitHub ↗

Delivery annotations as a dictionary of key/values. The AMQP 1.0 specification restricts this dictionary to have keys that are either :class:`symbol` or :class:`ulong` types. It is possible to use the special ``dict`` subclass :class:`AnnotationDict` which will by def

(self)

Source from the content-addressed store, hash-verified

434
435 @property
436 def instructions(self) -> Optional[AnnotationDict]:
437 """Delivery annotations as a dictionary of key/values. The AMQP 1.0
438 specification restricts this dictionary to have keys that are either
439 :class:`symbol` or :class:`ulong` types. It is possible to use
440 the special ``dict`` subclass :class:`AnnotationDict` which
441 will by default enforce these restrictions on construction. In addition,
442 if string types are used, this class will be silently convert them into
443 symbols.
444
445 :type: :class:`AnnotationDict`. Any ``dict`` with :class:`ulong` or :class:`symbol` keys.
446 """
447 return self.instruction_dict
448
449 @instructions.setter
450 def instructions(self, instructions: Optional[Dict[Union[str, int], 'PythonAMQPData']]) -> None:

Callers 1

ProtonClass · 0.80

Calls 1

AnnotationDictClass · 0.85

Tested by

no test coverage detected