Skip to content

Commit 69b76cc

Browse files
committed
mypy
1 parent 61cb2d1 commit 69b76cc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

onnx_diagnostic/torch_models/test_helper.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -380,7 +380,7 @@ def validate_model(
380380
summary["model_class"] = data["model"].__class__.__name__
381381
summary["model_module"] = str(data["model"].__class__.__module__)
382382
if summary["model_module"] in sys.modules:
383-
summary["model_file"] = str(sys.modules[summary["model_module"]].__file__)
383+
summary["model_file"] = str(sys.modules[summary["model_module"]].__file__) # type: ignore[index]
384384
summary["model_config_class"] = data["configuration"].__class__.__name__
385385
summary["model_config"] = str(data["configuration"].to_dict()).replace(" ", "")
386386
summary["model_id"] = model_id

0 commit comments

Comments
 (0)