-
-
Notifications
You must be signed in to change notification settings - Fork 110
Closed as not planned
Description
This line throws index error in certain cases.
import tomlkit
doc = tomlkit.parse('''
[a]
[a.b]
b = 0
''')
for label, obj in doc['a'].items():
obj[tomlkit.key(['a', 'b'])] = 1
obj[tomlkit.key(['a', 'c'])] = 2self._table_keys[-1] != current_body_element[0]
~~~~~~~~~~~~~~~~^^^^
IndexError: list index out of range
am i misusing an API or is the implementation wrong? issue also occurs when using .add() method instead of setitem()
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels