def _handle_attachments(self, value: List[AttachmentPayload]) -> None:
    self.attachments = [Attachment(data=a, state=self._state) for a in value]
def _handle_attachments(self, value: List[AttachmentPayload]) -> None:
    self.attachments = [Attachment(data=a, state=self._state) for a in value]