uiri / toml

Python lib for TOML
MIT License
1.08k stars 190 forks source link

TomlDecodeError: Loading with multiple dictionaries within a dictionary. #419

Open CJP-Whitt opened 1 year ago

CJP-Whitt commented 1 year ago

Version: v0.10.2 False Error: 'Invalid inline table value encountered'

I get the following error while trying to load the below TOML from a file: toml.decoder.TomlDecodeError: Invalid inline table value encountered

The contents of the TOML file: bad = {x = {y = {a = 1}, z = {b = 1}}}

For example, these TOML contents parse fine:

And this will fail as well:

quimey commented 1 year ago

Similar example with problems:

bad = {x = [[1, 1], [1, 2]]}

good = {x = [[1, 1]]}

good = {x = [1, 2]}