Skip to content

Commit efaa2a3

Browse files
committed
f - [bugfix] [ModelicaSystemABC] fix _prepare_input_data() - ensure returned data is dict[str, str]
1 parent a06f5dc commit efaa2a3

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
@@ -795,7 +795,7 @@ def prepare_str(str_in: str) -> dict[str, str]:
795795
input_data = input_data | prepare_str(item)
796796
elif isinstance(input_arg, dict):
797797
input_arg_str: dict[str, str] = {}
798-
for key, val in input_arg:
798+
for key, val in input_arg.items():
799799
if not isinstance(key, str) or len(key) == 0:
800800
raise ModelicaSystemError(f"Invalid key for set*() functions: {repr(key)}")
801801
input_arg_str[key] = str(val)

0 commit comments

Comments
 (0)