Skip to content

Commit 1b9e27b

Browse files
committed
mypy
1 parent 5cd902b commit 1b9e27b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

onnx_diagnostic/export/dynamic_shapes.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -437,7 +437,7 @@ def move_to_kwargs(
437437

438438
def validate_inputs_for_export(
439439
self, dynamic_shapes: Optional[DYNAMIC_SHAPES] = None
440-
) -> List[List[str]]:
440+
) -> List[List[Union[int,str]]]:
441441
"""
442442
Validates the inputs the class contains for the given dynamic shapes.
443443
If not specified, the dynamic_shapes are guessed.
@@ -447,7 +447,7 @@ def validate_inputs_for_export(
447447
"""
448448
if dynamic_shapes is None:
449449
if len(self.inputs) == 1:
450-
return True
450+
return []
451451
dyn_shapes = self.guess_dynamic_shapes()
452452
return [CoupleInputsDynamicShapes(*i, dyn_shapes).invalid_paths() for i in self.inputs]
453453

0 commit comments

Comments
 (0)