Skip to content

Commit e33fd39

Browse files
committed
cast typing
1 parent fe27e67 commit e33fd39

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/ert/run_models/_create_run_path.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
from copy import deepcopy
1111
from datetime import UTC, datetime
1212
from pathlib import Path
13-
from typing import TYPE_CHECKING, Any
13+
from typing import TYPE_CHECKING, Any, cast
1414

1515
import orjson
1616
import polars as pl
@@ -193,7 +193,7 @@ def _generate_parameter_files(
193193

194194
data: dict[str, Any] = {}
195195
for control in controls:
196-
df = fs.load_parameters(control.name, iens)
196+
df = cast(pl.DataFrame, fs.load_parameters(control.name, iens))
197197
assert isinstance(df, pl.DataFrame)
198198
value = df[control.input_key].item()
199199

0 commit comments

Comments
 (0)