diff --git a/monai/networks/utils.py b/monai/networks/utils.py index d0150b4e5b..295a055390 100644 --- a/monai/networks/utils.py +++ b/monai/networks/utils.py @@ -697,7 +697,7 @@ def convert_to_onnx( torch.onnx.export( mode_to_export, onnx_inputs, - f=f, + f=f, # type: ignore[arg-type] input_names=input_names, output_names=output_names, dynamic_axes=dynamic_axes, diff --git a/tests/test_bundle_download.py b/tests/test_bundle_download.py index 02a9f40846..399c61b117 100644 --- a/tests/test_bundle_download.py +++ b/tests/test_bundle_download.py @@ -250,7 +250,7 @@ def test_download_monaihosting(self, mock_get_versions): mock_logger.warning.assert_called_once() @skip_if_quick - @patch("monai.bundle.scripts.get_versions", return_value={"version": "1.2"}) + @patch("monai.bundle.scripts.get_versions", return_value={"version": "1.3"}) def test_download_ngc(self, mock_get_versions): """Test checking MONAI version from a metadata file.""" with patch("monai.bundle.scripts.logger") as mock_logger: