Skip to content

Commit 037a45a

Browse files
committed
Use type-hints rather than typing class instantiation statements
This allows us to bypass the interpreter and eliminates the need to quote types in some cases. Signed-off-by: Sahas Subramanian <[email protected]>
1 parent 1de37a7 commit 037a45a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/frequenz/sdk/microgrid/_data_pipeline.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -94,13 +94,13 @@ def __init__(
9494
self._data_sourcing_actor: _ActorInfo | None = None
9595
self._resampling_actor: _ActorInfo | None = None
9696

97-
self._battery_status_channel = Broadcast["ComponentStatus"](
97+
self._battery_status_channel: Broadcast[ComponentStatus] = Broadcast(
9898
"battery-status", resend_latest=True
9999
)
100-
self._power_distribution_requests_channel = Broadcast["Request"](
100+
self._power_distribution_requests_channel: Broadcast[Request] = Broadcast(
101101
"Power Distributing Actor, Requests Broadcast Channel"
102102
)
103-
self._power_distribution_results_channel = Broadcast["Result"](
103+
self._power_distribution_results_channel: Broadcast[Result] = Broadcast(
104104
"Power Distributing Actor, Results Broadcast Channel"
105105
)
106106

0 commit comments

Comments
 (0)