Skip to content

Commit de07a47

Browse files
committed
mypy
1 parent 977654c commit de07a47

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

onnx_diagnostic/torch_export_patches/patch_details.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ class PatchInfo:
4747
"""
4848
Stores informations about patches.
4949
50-
:param function_to_patch: function to pathc
50+
:param function_to_patch: function to patch
5151
:param patch: function patched
5252
:param family: a category, anything to classify the patch
5353
"""
@@ -186,7 +186,7 @@ def append(self, family: str, function_to_patch: Union[str, Callable], patch: Ca
186186
Stores a patch.
187187
188188
:param family: a category, anything to classify the patch
189-
:param function_to_patch: function to pathc
189+
:param function_to_patch: function to patch
190190
:param patch: function patched
191191
"""
192192
self.patched.append(PatchInfo(function_to_patch, patch, family=family))
@@ -263,7 +263,7 @@ def patches_involded_in_graph(
263263
f"\n--\n{pprint.pformat(node.meta)}"
264264
)
265265

266-
res = {}
266+
res = {} # type: ignore[var-annotated]
267267
for patch, node in patch_node:
268268
if patch not in res:
269269
res[patch] = []

0 commit comments

Comments
 (0)