Skip to content

Commit 70526e6

Browse files
committed
mypy
1 parent 19a76a8 commit 70526e6

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

onnx_diagnostic/helpers/dot_helper.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
from typing import Set
1+
from typing import Dict, Set
22
import onnx
33
from .onnx_helper import onnx_dtype_name, pretty_onnx
44

@@ -83,7 +83,7 @@ def to_dot(model: onnx.ModelProto) -> str:
8383
dot = to_dot(em.model_proto)
8484
print("DOT-SECTION", dot)
8585
"""
86-
_unique = {}
86+
_unique: Dict[int, int] = {}
8787

8888
def _mkn(obj: object) -> int:
8989
id_obj = id(obj)
@@ -169,7 +169,7 @@ def _mkn(obj: object) -> int:
169169
if att.type == onnx.AttributeProto.GRAPH:
170170
unique |= _get_hidden_inputs(att.g)
171171
for i in unique:
172-
edge = name_to_ids[i], _mkn(node)
172+
edge = name_to_ids[i], _mkn(node) # type: ignore[assignment]
173173
if edge in done:
174174
continue
175175
done.add(edge)

0 commit comments

Comments
 (0)