From c629892e611039e99132522c809deb2391a627f6 Mon Sep 17 00:00:00 2001 From: Nathan Moore Date: Fri, 22 Dec 2023 09:01:18 -0700 Subject: [PATCH] run_path has already been verified to be a Path. Make mypy happy. --- geojson_modelica_translator/modelica/modelica_runner.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/geojson_modelica_translator/modelica/modelica_runner.py b/geojson_modelica_translator/modelica/modelica_runner.py index a36655cc0..a4d864e3d 100644 --- a/geojson_modelica_translator/modelica/modelica_runner.py +++ b/geojson_modelica_translator/modelica/modelica_runner.py @@ -136,7 +136,7 @@ def _copy_over_docker_resources(self, run_path: Path, filename: Union[str, Path, with open(run_path / 'compile_fmu.mos', 'w') as f: f.write(template.render(**model_data)) - def _subprocess_call_to_docker(self, run_path: Union[str, Path], action: str) -> int: + def _subprocess_call_to_docker(self, run_path: Path, action: str) -> int: """Call out to a subprocess to run the command in docker Args: