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
Is this a tomlkit bug or is my deep_update function doing something wrong?
Note that I cannot simply loop over existing and known (key, value) pairs as the config file where I want to apply this is quite more complex.
tomlkit version: 0.11.6 on Linux
The text was updated successfully, but these errors were encountered:
I'm using this function to update my nested dic with several arrays, resetting anything that are non-URLs to empty strings:
Using a minimal example taken and slightly adapted from the Table section of the 1.0 TOML definition (https://github.com/toml-lang/toml/blob/1.0.0/toml.md#table):
This dic prints like this:
and nicely dumps back to text like so, exactly as given:
However, when using above function to update the dic, resetting the value of
apple.color
to '':it returns:
but the tomlkit.dump has now lost the original structure:
Is this a tomlkit bug or is my
deep_update
function doing something wrong?Note that I cannot simply loop over existing and known (key, value) pairs as the config file where I want to apply this is quite more complex.
tomlkit version: 0.11.6 on Linux
The text was updated successfully, but these errors were encountered: