The annotations associated with a disposition. The :class:`Data` object retrieved by this operation may be modified prior to updating a delivery. When a delivery is updated, the annotations described by the :class:`Data` are reported to the peer if applicable to the
(self)
| 188 | |
| 189 | @property |
| 190 | def annotations(self) -> Optional[Dict['symbol', 'PythonAMQPData']]: |
| 191 | """The annotations associated with a disposition. |
| 192 | |
| 193 | The :class:`Data` object retrieved by this operation may be modified |
| 194 | prior to updating a delivery. When a delivery is updated, the |
| 195 | annotations described by the :class:`Data` are reported to the peer |
| 196 | if applicable to the current delivery state, e.g. states such as |
| 197 | :const:`MODIFIED`. The :class:`Data` must be empty or contain a symbol |
| 198 | keyed map. |
| 199 | |
| 200 | The :class:`Data` object returned by this operation is valid until |
| 201 | the parent delivery is settled. |
| 202 | """ |
| 203 | if self.local: |
| 204 | return self._annotations |
| 205 | else: |
| 206 | return dat2obj(pn_disposition_annotations(self._impl)) |
| 207 | |
| 208 | @annotations.setter |
| 209 | def annotations(self, obj: Dict[str, 'PythonAMQPData']) -> None: |
nothing calls this directly
no test coverage detected