Skip to content

Commit 11fca2e

Browse files
committed
??? TODO: fix mypy / flake8
1 parent 9fab662 commit 11fca2e

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

OMPython/ModelicaSystem.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,6 @@
4242
import textwrap
4343
import threading
4444
from typing import Any, Optional
45-
import warnings
4645
import xml.etree.ElementTree as ET
4746

4847
import numpy as np
@@ -1838,7 +1837,8 @@ def prepare(self) -> int:
18381837
}
18391838
)
18401839

1841-
self._mod.setParameters(sim_param_simple)
1840+
# TODO: this needs a real fix!
1841+
self._mod.setParameters(**sim_param_simple) # type: ignore[arg-type]
18421842
mscmd = self._mod.simulate_cmd(
18431843
result_file=resultfile,
18441844
timeout=self._timeout,

0 commit comments

Comments
 (0)