Skip to content

Commit be434a9

Browse files
llucaxshsmsdaniel-zullo-frequenz
committed
Improve some documentation comments
Based on the review comments. Co-authored-by: Sahas Subramanian <[email protected]> Co-authored-by: Daniel Zullo <[email protected]> Signed-off-by: Leandro Lucarella <[email protected]>
1 parent f3c1eee commit be434a9

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

src/frequenz/sdk/actor/power_distributing/request.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,10 @@ class Request:
1212
"""Request to set power to the `PowerDistributingActor`."""
1313

1414
power: int
15-
"""The amount of power to be set."""
15+
"""The requested power in watts."""
1616

1717
batteries: set[int]
18-
"""The set of batteries to use when requesting the power to be set."""
18+
"""The component ids of the batteries to be used for this request."""
1919

2020
request_timeout_sec: float = 5.0
2121
"""The maximum amount of time to wait for the request to be fulfilled."""
@@ -24,8 +24,8 @@ class Request:
2424
"""Whether to adjust the power to match the bounds.
2525
2626
If `True`, the power will be adjusted (lowered) to match the bounds, so
27-
only the decreased power will be set.
27+
only the reduced power will be set.
2828
2929
If `False` and the power is outside the batteries' bounds, the request will
30-
fail and replied to with an `OutOfBound` result.
30+
fail and be replied to with an `OutOfBound` result.
3131
"""

src/frequenz/sdk/actor/power_distributing/result.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ class _BaseSuccessMixin:
5555

5656
@dataclasses.dataclass
5757
class Success(_BaseSuccessMixin, Result): # Order matters here. See above.
58-
"""Result returned when setting the power succeed for all batteries."""
58+
"""Result returned when setting the power succeeded for all batteries."""
5959

6060

6161
@dataclasses.dataclass

0 commit comments

Comments
 (0)