Skip to content

Commit 6fcc53c

Browse files
committed
mypy
1 parent 1b7f5fa commit 6fcc53c

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

.github/workflows/spell-check.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,4 +21,4 @@ jobs:
2121

2222
# Run codespell
2323
- name: Run codespell
24-
run: codespell --skip="*.png,*.jpg,*.jpeg,*.gif,*.svg,*.ico,*.pdf,*.js" --ignore-words-list="nd,te,OT" --check-filenames
24+
run: codespell --skip="*.png,*.jpg,*.jpeg,*.gif,*.svg,*.ico,*.pdf,*.js,*.css,*.map" --ignore-words-list="nd,te,OT" --check-filenames

onnx_diagnostic/torch_export_patches/patches/patch_torch.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ def patched__broadcast_shapes(*_shapes):
131131
assert isinstance(shape, Sequence)
132132

133133
# Computes common shape
134-
common_shape: List[Union[int, torch.SymInt]] = [
134+
common_shape = [ # List[Union[int, torch.SymInt]]
135135
1,
136136
] * reduce(max, (len(shape) for shape in shapes))
137137
for _arg_idx, shape in enumerate(shapes):

onnx_diagnostic/torch_models/hghub/hub_api.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ def task_from_arch(arch: str) -> str:
2121
from onnx_diagnostic.torch_models.hub_data import __date__
2222
print("last refresh", __date__)
2323
24-
List of supported architecturs, see
24+
List of supported architectures, see
2525
:func:`load_architecture_task
2626
<onnx_diagnostic.torch_models.hghub.hub_data.load_architecture_task>`.
2727
"""
@@ -116,7 +116,7 @@ def enumerate_model_list(
116116
f"[enumerate_model_list] id={m.id!r}, "
117117
f"library={m.library_name!r}, task={m.task!r}"
118118
)
119-
with open(dump, "a") as f:
119+
with open(dump, "a") as f: # type: ignore
120120
f.write(
121121
",".join(
122122
map(

0 commit comments

Comments
 (0)