Replies: 1 comment
-
This is a great proposal, and also something I have thought about doing. The config started out very simple but has slowly grown to be quite complex. This should also make it a bit easier to refactor the config in the future and provide a migration path for people. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
i want to propose a change to improve the configuration file parsing process & make it type safe
currently we use python toml package to parse the file and run validation on the dictionary object. but i find it is tricky to add new configuration and use it safely anywhere else.
i think we can improve the configuration by
pydantic
to convert toml file to dataclass, which make the whole thing typesafefor example:
Beta Was this translation helpful? Give feedback.
All reactions