Skip to content

Commit 67eba3b

Browse files
committed
fix: minor typing issue
1 parent 757c6fe commit 67eba3b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/pownet/core/model_builder.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -182,8 +182,8 @@ def get_phydro(self) -> gp.tupledict:
182182
return self.hydro_builder.phydro
183183

184184
def update_daily_hydropower_capacity(
185-
self, step_k: int, new_capacity: dict[(str, int), float]
186-
) -> None:
185+
self, step_k: int, new_capacity: dict[tuple[str, int], float]
186+
) -> PowerSystemModel:
187187
"""Update the daily hydro capacity in the model."""
188188
self.hydro_builder.update_daily_hydropower_capacity(step_k, new_capacity)
189189
self.model.update()

0 commit comments

Comments
 (0)