Skip to content

Commit cfc9976

Browse files
committed
fix: error when overwriting a sub table
Fix #313 Signed-off-by: Frost Ming <[email protected]>
1 parent a1a8d37 commit cfc9976

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22

33
## [Unreleased]
44

5+
### Fixed
6+
7+
- Fixed a bug that overwriting a sub table with a plain value raises an error. ([#313](https://github.com/sdispater/tomlkit/issues/313))
8+
59
## [0.12.2] - 2023-09-20
610

711
### Fixed

tomlkit/items.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1945,7 +1945,7 @@ class Null(Item):
19451945
"""
19461946

19471947
def __init__(self) -> None:
1948-
pass
1948+
super().__init__(Trivia(trail=""))
19491949

19501950
def unwrap(self) -> None:
19511951
return None

0 commit comments

Comments
 (0)