Skip to content

Commit 58b8f64

Browse files
committed
mypy
1 parent 118f7d0 commit 58b8f64

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

onnx_diagnostic/torch_export_patches/onnx_export_serialization.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ def register_cache_serialization(verbose: int = 0) -> Dict[str, bool]:
133133
f"registered first"
134134
)
135135
unregister_class_serialization(cls, verbose=verbose)
136-
registration_functions[cls](verbose=verbose) # type: ignore[arg-type]
136+
registration_functions[cls](verbose=verbose) # type: ignore[arg-type, call-arg]
137137
if verbose:
138138
print(f"[_fix_registration] {cls.__name__} done.")
139139
# To avoid doing it multiple times.
@@ -142,7 +142,7 @@ def register_cache_serialization(verbose: int = 0) -> Dict[str, bool]:
142142
# classes with no registration at all.
143143
done = {}
144144
for k, v in registration_functions.items():
145-
done[k] = v(verbose=verbose) # type: ignore[arg-type]
145+
done[k] = v(verbose=verbose) # type: ignore[arg-type, call-arg]
146146
return done
147147

148148

0 commit comments

Comments
 (0)