Commit 71e9ba8
committed
Replace serde with stdlib dataclasses, bump to 2.0.0
The serde library is unmaintained. Replace it with Python stdlib
dataclasses and a custom Model base class that provides the same
from_dict()/to_dict() API with identical behavior:
- Optional fields omitted from to_dict() when None
- Extra/unknown fields silently ignored
- ValidationError on missing required fields
Also adds Python 3.14 to CI matrix and removes serde-specific
mypy overrides.1 parent 0cf8ccd commit 71e9ba8
6 files changed
Lines changed: 432 additions & 300 deletions
File tree
- .github/workflows
- l9format
- tests
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
9 | | - | |
| 9 | + | |
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
33 | 33 | | |
34 | 34 | | |
35 | 35 | | |
| 36 | + | |
36 | 37 | | |
37 | 38 | | |
38 | 39 | | |
| |||
66 | 67 | | |
67 | 68 | | |
68 | 69 | | |
| 70 | + | |
69 | 71 | | |
0 commit comments