Skip to content

Commit 0f4d22e

Browse files
committed
Use the dataclass decorator from dataclasses
We are not using the `.Schema` attribute from marshmallow_dataclass, so it is better to just stick to the standard `dataclass` decorator to make thing simpler. Signed-off-by: Leandro Lucarella <[email protected]>
1 parent 56d50fd commit 0f4d22e

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

RELEASE_NOTES.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,12 @@
1111
* Renamed to `LoggingConfigUpdatingActor` to follow the actor naming convention.
1212
* Make all arguments to the constructor keyword-only.
1313

14-
- The `LoggingConfig.load` method was removed. Please use `frequenz.sdk.config.load_config()` instead.
14+
- `LoggingConfig`
15+
16+
* The `load()` method was removed. Please use `frequenz.sdk.config.load_config()` instead.
17+
* The class is now a standard `dataclass` instead of a `marshmallow_dataclass`.
18+
19+
- `LoggerConfig` is not a standard `dataclass` instead of a `marshmallow_dataclass`.
1520

1621
## New Features
1722

src/frequenz/sdk/config/_logging_actor.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,12 @@
55

66
import logging
77
from collections.abc import Mapping
8-
from dataclasses import field
8+
from dataclasses import dataclass, field
99
from typing import Annotated, Any
1010

1111
import marshmallow
1212
import marshmallow.validate
1313
from frequenz.channels import Receiver
14-
from marshmallow_dataclass import dataclass
1514

1615
from ..actor import Actor
1716
from ._util import load_config

0 commit comments

Comments
 (0)