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
The above works perfectly. toml.load of the above code results in the dictionary I expect. However, if this written from a dict using toml.dump, the resulting toml has a the loggers group decomposed into
Loading this with toml.load results in the error TomlDecodeError: Can't have a keygroup with an empty name
I store my default configurations in a pydanticBaseModel that is then dumped to dict and finally written to a toml file on installation. The above means that I can't use toml as a config format for my logging configuration as I have to go in and change the second version to the first for it to work. Ultimately I'll have to host it in another configuration format, which is unfortunate.
Request:
Either:
Allow the empty keygroup
Have toml.dump generate a file that can be read using toml.load
The text was updated successfully, but these errors were encountered:
Description
When using toml to store a logging
dictConfig
, I want to store a keygroup with a name of""
to reference the root logger. For example:The above works perfectly.
toml.load
of the above code results in the dictionary I expect. However, if this written from a dict usingtoml.dump
, the resulting toml has a theloggers
group decomposed intoLoading this with
toml.load
results in the errorTomlDecodeError: Can't have a keygroup with an empty name
I store my default configurations in a
pydantic
BaseModel
that is then dumped todict
and finally written to a toml file on installation. The above means that I can't use toml as a config format for my logging configuration as I have to go in and change the second version to the first for it to work. Ultimately I'll have to host it in another configuration format, which is unfortunate.Request:
Either:
toml.dump
generate a file that can be read usingtoml.load
The text was updated successfully, but these errors were encountered: