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
Well, basically one just has to update the sorting code in ser.rs. To correctly check if something is an Array of Tables, one in theory had to check if every item is a dict.
But as far as I know, rtoml does not serialize arrays containing both dicts and other values, so checking if the first element is a dict should be fine.
I will try, but this would be my very first PR.
VOsakosa
pushed a commit
to VOsakosa/rtoml
that referenced
this issue
Apr 23, 2023
When a list that is dumped inline is defined in a dict before a list of tables, dumping fails. This is duplicate of #45, which was already closed.
Minimal working example
This does not occur if the order of the keys is switched:
Taking care to define the items in the right order is for now a doable workaround.
rtoml Version: 0.9.0
Python Version: 3.11.2 (main, Mar 13 2023, 12:18:29) [GCC 12.2.0]
The text was updated successfully, but these errors were encountered: