Skip to content

Commit e9b2e05

Browse files
committed
Add @override to PowerDistributingActor
Signed-off-by: Leandro Lucarella <[email protected]>
1 parent 8fbaa3a commit e9b2e05

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414

1515
from frequenz.channels import Receiver, Sender
1616
from frequenz.client.microgrid import ComponentCategory, ComponentType, InverterType
17+
from typing_extensions import override
1718

1819
from ...actor._actor import Actor
1920
from ._component_managers import (
@@ -113,6 +114,7 @@ def __init__( # pylint: disable=too-many-arguments
113114
f"PowerDistributor doesn't support controlling: {component_category}"
114115
)
115116

117+
@override
116118
async def _run(self) -> None: # pylint: disable=too-many-locals
117119
"""Run actor main function.
118120
@@ -127,6 +129,7 @@ async def _run(self) -> None: # pylint: disable=too-many-locals
127129
async for request in self._requests_receiver:
128130
await self._component_manager.distribute_power(request)
129131

132+
@override
130133
async def stop(self, msg: str | None = None) -> None:
131134
"""Stop this actor.
132135

0 commit comments

Comments
 (0)