Skip to content

Commit 9ba1d09

Browse files
committed
mypy
1 parent 18f77de commit 9ba1d09

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

onnx_diagnostic/export/dynamic_shapes.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -988,7 +988,11 @@ def move_to_kwargs(
988988
with the corresponding dynamic shapes.
989989
*kwargs*, *dynamic_shapes* are modified inplace.
990990
"""
991-
assert self.signature is not None, (
991+
assert (
992+
self.signature is not None
993+
and self.forward_parameter_names is not None
994+
and self.forward_ordered_parameter_names is not None
995+
), (
992996
"model was None when the class was initialized, "
993997
"cannot move args to kwargs without the signature."
994998
)

0 commit comments

Comments
 (0)