Skip to content

Commit

Permalink
fix: error when overwriting a sub table
Browse files Browse the repository at this point in the history
Fix #313

Signed-off-by: Frost Ming <[email protected]>
  • Loading branch information
frostming committed Sep 22, 2023
1 parent a1a8d37 commit cfc9976
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@

## [Unreleased]

### Fixed

- Fixed a bug that overwriting a sub table with a plain value raises an error. ([#313](https://github.com/sdispater/tomlkit/issues/313))

## [0.12.2] - 2023-09-20

### Fixed
Expand Down
2 changes: 1 addition & 1 deletion tomlkit/items.py
Original file line number Diff line number Diff line change
Expand Up @@ -1945,7 +1945,7 @@ class Null(Item):
"""

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

def unwrap(self) -> None:
return None
Expand Down

0 comments on commit cfc9976

Please sign in to comment.