We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5237c14 commit 1615ee8Copy full SHA for 1615ee8
1 file changed
flixopt/io.py
@@ -22,6 +22,8 @@
22
import yaml
23
24
if TYPE_CHECKING:
25
+ from collections.abc import Generator
26
+
27
import linopy
28
29
from .flow_system import FlowSystem
@@ -1511,7 +1513,7 @@ def suppress_output():
1511
1513
1512
1514
1515
@contextmanager
-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]:
1517
"""Stream solver log file contents to the ``flixopt.solver`` Python logger.
1518
1519
Tails a solver log file in a background thread, forwarding each line to
0 commit comments