Commit a5fe910
committed
fix(toml): complete migration off uiri/toml; add tomli for Py3.10 decode
Per maintainer review (CHANGES_REQUESTED, fabiocaccamo): replace abandoned
uiri/toml dependency with tomli (Python 3.10) + tomllib (Python 3.11+).
Encode side stays on tomli_w (no change). Net: uiri/toml fully removed.
Fix mypy CI gate:
- benedict/serializers/toml.py:52 — explicit str annotation on
tomli_w.dumps() return value to satisfy [no-any-return] check.
Auxiliary test file rename + typo fix:
- tests/dicts/io/test_io_dict_toml.py — patched flag renamed
toml_installed -> tomli_installed; "tomlib" -> "tomllib" in skip-message.
Verified locally: pre-commit clean (9/9 hooks pass including mypy);
pytest tests/serializers/test_toml_serializer.py + tests/dicts/io/test_io_dict_toml.py
21 passed, 1 skipped (skip is correct — tomllib available on Py3.11+).1 parent fab8096 commit a5fe910
4 files changed
Lines changed: 19 additions & 19 deletions
File tree
- benedict/serializers
- tests/dicts/io
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
| 2 | + | |
| 3 | + | |
3 | 4 | | |
4 | | - | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
5 | 13 | | |
6 | | - | |
| 14 | + | |
7 | 15 | | |
8 | 16 | | |
9 | 17 | | |
| |||
12 | 20 | | |
13 | 21 | | |
14 | 22 | | |
15 | | - | |
16 | | - | |
17 | | - | |
18 | | - | |
19 | | - | |
20 | | - | |
21 | | - | |
22 | | - | |
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
| |||
42 | 42 | | |
43 | 43 | | |
44 | 44 | | |
45 | | - | |
46 | | - | |
| 45 | + | |
| 46 | + | |
47 | 47 | | |
48 | 48 | | |
49 | 49 | | |
50 | 50 | | |
51 | | - | |
52 | | - | |
| 51 | + | |
| 52 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
138 | 138 | | |
139 | 139 | | |
140 | 140 | | |
141 | | - | |
| 141 | + | |
142 | 142 | | |
143 | 143 | | |
144 | 144 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
14 | | - | |
| 14 | + | |
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
50 | 50 | | |
51 | 51 | | |
52 | 52 | | |
53 | | - | |
| 53 | + | |
54 | 54 | | |
55 | | - | |
| 55 | + | |
56 | 56 | | |
57 | 57 | | |
58 | 58 | | |
| |||
0 commit comments