Skip to content

Commit bed8fe5

Browse files
committed
mypy
1 parent a768cb9 commit bed8fe5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

onnx_diagnostic/export/shape_helper.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
from typing import Any
1+
from typing import Any, Set
22
from ..helpers.cache_helper import flatten_unflatten_for_dynamic_shapes
33

44

@@ -10,7 +10,7 @@ def all_dynamic_shape_from_inputs(inputs: Any, dim_prefix: Any = "d") -> Any:
1010
or ``torch.export.Dim.AUTO`` or ``torch.export.Dim.DYNAMIC``.
1111
"""
1212
if isinstance(dim_prefix, str):
13-
prefixes = set()
13+
prefixes: Set[str] = set()
1414

1515
def tensor_to_shape(tensor):
1616
n = len(prefixes)

0 commit comments

Comments
 (0)