You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
hi everyone. This is a fantastic library - thanks so much. I know parsers and stringifiers are challenging to get right - I'd much rather
use tomlkit than have to write my own code to stringify TOML.
During testing of my code (using Hypothesis) I came across the following behaviour. Apologies if I've misread the TOML, but
is this a bug?
Correct behaviour with no nested table, in an array of tables:
hi everyone. This is a fantastic library - thanks so much. I know parsers and stringifiers are challenging to get right - I'd much rather
use tomlkit than have to write my own code to stringify TOML.
During testing of my code (using Hypothesis) I came across the following behaviour. Apologies if I've misread the TOML, but
is this a bug?
Correct behaviour with no nested table, in an array of tables:
Subtable in array of tables stringified as a nested table (no array):
The above is not the correct toml for that object. Unless I'm mistaken, I would expect for example:
or:
Also unfortunately I don't think nested arrays of tables are handled correctly:
I think that's just missing the outer-most array of tables definition to start with:
Examples of sub-tables and nested-arrays-of-tables are given in the toml spec.
https://toml.io/en/v1.0.0#array-of-tables
This was on Python 3.11 64 bit on Windows
The text was updated successfully, but these errors were encountered: