Convert to a MessageBlock referencing this attachment.
(self)
| 48 | ) |
| 49 | |
| 50 | def as_message_block(self) -> MessageBlock: |
| 51 | """Convert to a MessageBlock referencing this attachment.""" |
| 52 | return MessageBlock( |
| 53 | type=self.kind, |
| 54 | attachment=self.ref.copy(), |
| 55 | data=dict(self.extra), |
| 56 | ) |
| 57 | |
| 58 | |
| 59 | class AttachmentStore: |
no test coverage detected