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
Add a function to load configurations with correct type hints
When loading configurations from dictionaries, using
`marshmallow_dataclass`, the type hints are not preserved by the
`load()` method, leading to repetitive casting every time `load()` needs
to be used.
This commit adds a new `load_config()` function to the
`frequenz.sdk.config` module that takes care of loading configurations
from dictionaries into configuration classes with correct type hints.
Signed-off-by: Leandro Lucarella <[email protected]>
Copy file name to clipboardExpand all lines: RELEASE_NOTES.md
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -21,6 +21,7 @@
21
21
## New Features
22
22
23
23
- The `ConfigManagingActor` can now take multiple configuration files as input, allowing to override default configurations with custom configurations.
24
+
* A new `frequenz.sdk.config.load_config()` function is available to load configurations using `marshmallow_dataclass`es with correct type hints.
24
25
- Implement and standardize logging configuration with the following changes:
25
26
* Add `LoggerConfig` and `LoggingConfig` to standardize logging configuration.
26
27
* Create `LoggingConfigUpdater` to handle runtime config updates.
0 commit comments