Skip to content

Commit

Permalink
yield nothing
Browse files Browse the repository at this point in the history
Signed-off-by: Thijs Baaijen <[email protected]>
  • Loading branch information
Thijss committed Jan 28, 2025
1 parent d9521f6 commit 4cae2a4
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/power_grid_model_ds/_core/model/graphs/models/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
# SPDX-License-Identifier: MPL-2.0

from abc import ABC, abstractmethod
from contextlib import contextmanager
from typing import Generator

import numpy as np
Expand Down Expand Up @@ -192,7 +193,8 @@ def tmp_remove_nodes(self, nodes: list[int]) -> Generator:
]
edge_list += node_edges
self._delete_node(internal_node)
yield edge_list
yield

for node in nodes:
self.add_node(node)
for source, target in edge_list:
Expand Down

0 comments on commit 4cae2a4

Please sign in to comment.