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
Since have nested and rather complex config structure, this approach is not suitable. You should have a custom class for this using dataclass for example, since working with nested dict objects is difficult and not maintainable. I know you're in a time crunch and want to produce results as soon as possible. But I highly recommend refactoring this part. So, for example, instead of having config['real']['results'], you can have something like this:
So, whenever you want to use it in the code, you can use config.real.results. You can have validations and conversions, if necessary, in __post_init__. Having a structure for config even makes development and maintenance easier, since most IDEs now use them for autocomplete suggestions and static type checkers will be able to catch errors.
As I said, if you don't have time to refactor this now, it's ok, it's not a blocker for me.
Originally posted by @cheginit in #83 (comment)
The text was updated successfully, but these errors were encountered: