(self)
| 157 | return f"[{self.type.value} block]" |
| 158 | |
| 159 | def copy(self) -> "MessageBlock": |
| 160 | return MessageBlock( |
| 161 | type=self.type, |
| 162 | text=self.text, |
| 163 | attachment=self.attachment.copy() if self.attachment else None, |
| 164 | data=dict(self.data), |
| 165 | ) |
| 166 | |
| 167 | |
| 168 | @dataclass |
no test coverage detected