Skip to content

Commit 62a6708

Browse files
authored
fix: Invalid serialization when overwriting out-of-order table key (#417)
- Updated pyproject.toml to use the new dependency grouping format for dev dependencies. - Added a test for overwriting out-of-order tables in the TOML document parser. - Enhanced the OutOfOrderTableProxy class to better manage the insertion of tables and plain values, ensuring correct handling of overwrites and maintaining the integrity of the internal structure. Signed-off-by: Frost Ming <[email protected]>
1 parent 64064f3 commit 62a6708

File tree

5 files changed

+141
-21
lines changed

5 files changed

+141
-21
lines changed

CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,13 @@
66

77
- Add `.item()` method to array and tables to retrieve an item by key. ([#390](https://github.com/python-poetry/tomlkit/issues/390))
88

9+
### Fixed
10+
11+
- Fix repeated whitespace when removing an array item. ([#405](https://github.com/python-poetry/tomlkit/issues/405))
12+
- Fix invalid serialization after removing array item if the comma is on its own line. ([#408](https://github.com/python-poetry/tomlkit/issues/408))
13+
- Refine the error message when use non-string as single key. ([#412](https://github.com/python-poetry/tomlkit/issues/412))
14+
- Fix invalid serialization after overwriting a key of a out-of-order table. ([#414](https://github.com/python-poetry/tomlkit/issues/414))
15+
916
## [0.13.2] - 2024-08-14
1017

1118
### Fixed

0 commit comments

Comments
 (0)