Skip to content

Commit 86edcf4

Browse files
committed
Fix flake8 violations
- Remove "(deprecated)" suffix from components property one-liner to avoid D402 (pydocstyle: first line should not be function's signature) - Wrap long line in start_managing docstring (E501: > 100 chars) Signed-off-by: Leandro Lucarella <luca-frequenz@llucax.com>
1 parent 1236a39 commit 86edcf4

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

src/frequenz/dispatch/_actor_dispatcher.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ class DispatchInfo:
4242
@property
4343
@deprecated("'components' is deprecated, use 'target' instead.")
4444
def components(self) -> TargetComponents:
45-
"""The target components (deprecated).
45+
"""The target components.
4646
4747
Warning: Deprecated in v0.10.3
4848
Use [`target`][..target] instead.

src/frequenz/dispatch/_dispatcher.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -328,9 +328,9 @@ async def start_managing(
328328
[`ActorDispatcher`][frequenz.dispatch.ActorDispatcher] for the given type that will
329329
start, stop and reconfigure actors based on received dispatches.
330330
331-
You can await the [`Dispatcher`][frequenz.dispatch.Dispatcher] instance to block until all types
332-
registered with [`start_managing`][..start_managing] are stopped using
333-
[`stop_managing`][..stop_managing].
331+
You can await the [`Dispatcher`][frequenz.dispatch.Dispatcher] instance to block
332+
until all types registered with [`start_managing`][..start_managing] are stopped
333+
using [`stop_managing`][..stop_managing].
334334
335335
"Merging" means that when multiple dispatches are active at the same time,
336336
the intervals are merged into one.

0 commit comments

Comments
 (0)