Skip to content

Commit 73b61a4

Browse files
committed
Fix checks failing with the new pylint version
Signed-off-by: Leandro Lucarella <[email protected]>
1 parent 55ffbf1 commit 73b61a4

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ class PowerDistributingActor(Actor):
4949
printed.
5050
"""
5151

52-
def __init__(
52+
def __init__( # pylint: disable=too-many-arguments
5353
self,
5454
requests_receiver: Receiver[Request],
5555
results_sender: Sender[Result],

tests/timeseries/_battery_pool/test_battery_pool_control_methods.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -148,15 +148,16 @@ async def _init_data_for_inverters(self, mocks: Mocks) -> None:
148148
0.05,
149149
)
150150

151-
def _assert_report(
151+
def _assert_report( # pylint: disable=too-many-arguments
152152
self,
153153
report: BatteryPoolReport,
154154
*,
155155
power: float | None,
156156
lower: float,
157157
upper: float,
158-
expected_result_pred: typing.Callable[[power_distributing.Result], bool]
159-
| None = None,
158+
expected_result_pred: (
159+
typing.Callable[[power_distributing.Result], bool] | None
160+
) = None,
160161
) -> None:
161162
assert report.target_power == (
162163
Power.from_watts(power) if power is not None else None

0 commit comments

Comments
 (0)