Skip to content

Commit 1615ee8

Browse files
committed
Fix typing
1 parent 5237c14 commit 1615ee8

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

flixopt/io.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@
2222
import yaml
2323

2424
if TYPE_CHECKING:
25+
from collections.abc import Generator
26+
2527
import linopy
2628

2729
from .flow_system import FlowSystem
@@ -1511,7 +1513,7 @@ def suppress_output():
15111513

15121514

15131515
@contextmanager
1514-
def stream_solver_log(log_fn: pathlib.Path | None = None):
1516+
def stream_solver_log(log_fn: pathlib.Path | None = None) -> Generator[pathlib.Path, None, None]:
15151517
"""Stream solver log file contents to the ``flixopt.solver`` Python logger.
15161518
15171519
Tails a solver log file in a background thread, forwarding each line to

0 commit comments

Comments
 (0)