Skip to content

Commit 177e32b

Browse files
committed
[bugfix] [ModelicaSystemABC] fix _prepare_input_data() - ensure returned data is dict[str, str]
1 parent ae54b6e commit 177e32b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

OMPython/modelica_system_abc.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -766,7 +766,7 @@ def prepare_str(str_in: str) -> dict[str, str]:
766766
if len(key_val_list) != 2:
767767
raise ModelicaSystemError(f"Invalid 'key=value' pair: {str_in}")
768768

769-
input_data_from_str: dict[str, str] = {key_val_list[0]: key_val_list[1]}
769+
input_data_from_str: dict[str, str] = {str(key_val_list[0]): str(key_val_list[1])}
770770

771771
return input_data_from_str
772772

0 commit comments

Comments
 (0)