Skip to content

Commit 2181e9c

Browse files
committed
feat!: use Pydantic 2 and move records to use computed_fields
Pydantic 2 has breaking API changes, the most important for us is the usage of compute_fields. The accounting system expects datetime fields to be returned as integers (i.e. epoch). We can use computed_fields for that, using properties. This way we can internally store datetime objects, and just conver them to integers when they are accessed. In order to do so, we define _epoch properties.
1 parent 248ffcd commit 2181e9c

File tree

5 files changed

+404
-286
lines changed

5 files changed

+404
-286
lines changed

0 commit comments

Comments
 (0)