1
0
libpurple-to-markdown/libpurple_to_markdown/data.py
Jon Michael Aanes 91ca8d66d8
All checks were successful
Run Python tests (through Pytest) / Test (push) Successful in 25s
Verify Python project can be installed, loaded and have version checked / Test (push) Successful in 22s
Restructure by moving datastructures and libpurple parsing into own module
2024-10-31 19:00:07 +01:00

15 lines
307 B
Python

import dataclasses
import datetime
@dataclasses.dataclass(frozen=True, order=True)
class Message:
sent_at: datetime.datetime
sender: str
text: str
def __post_init__(self):
assert self.sent_at is not None
assert self.sender is not None
assert self.text is not None