Skip to content

Commit 9795c46

Browse files
committed
pymp
1 parent 7a177fb commit 9795c46

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

onnx_diagnostic/torch_models/test_helper.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1126,7 +1126,7 @@ def call_torch_export_model_builder(
11261126
), f"unexpected value for optimization={optimization}, none is available"
11271127
precision = data.get("model_dtype", "fp32")
11281128
provider = data.get("model_device", "cpu")
1129-
summary = {}
1129+
summary: Dict[str, Any] = {}
11301130

11311131
epo = _quiet_or_not_quiet(
11321132
quiet,

pyproject.toml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,10 @@ disable_error_code = ["arg-type", "call-overload", "index"]
3232
module = ["onnx_diagnostic.helpers.helper"]
3333
disable_error_code = ["arg-type", "assignment", "attr-defined", "call-overload", "misc", "name-defined", "union-attr"]
3434

35+
[[tool.mypy.overrides]]
36+
module = ["onnx_diagnostic.helpers.model_builder_helper"]
37+
disable_error_code = ["attr-defined", "import-untyped", "name-defined", "var-annotated"]
38+
3539
[[tool.mypy.overrides]]
3640
module = ["onnx_diagnostic.helpers.onnx_helper"]
3741
disable_error_code = ["assignment", "arg-type", "name-defined", "union-attr"]

0 commit comments

Comments
 (0)