Skip to content

Commit b75030a

Browse files
committed
fix issues
1 parent a60697a commit b75030a

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

_doc/conf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@
124124
("py:func", ".*numpy[.].*"),
125125
("py:func", ".*scipy[.].*"),
126126
# ("py:func", ".*torch.ops.higher_order.*"),
127-
("py:class", ".*numpy._typing.[.].*"),
127+
("py:class", ".*numpy._typing[.].*"),
128128
("py:class", ".*onnxruntime[.].*"),
129129
("py:meth", ".*onnxruntime[.].*"),
130130
]

onnx_diagnostic/helpers.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -653,7 +653,7 @@ def from_array_ml_dtypes(arr: npt.ArrayLike, name: Optional[str] = None) -> Tens
653653

654654
def from_array_extended(tensor: npt.ArrayLike, name: Optional[str] = None) -> TensorProto:
655655
"""
656-
Converts an array into a TensorProto.
656+
Converts an array into a :class:`onnx.TensorProto`.
657657
658658
:param tensor: numpy array
659659
:param name: name

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ disable_error_code = ["arg-type", "call-overload", "index"]
2020

2121
[[tool.mypy.overrides]]
2222
module = ["onnx_diagnostic.helpers"]
23-
disable_error_code = ["arg-type", "assignment", "attr-defined", "call-overload", "misc", "name-defined"]
23+
disable_error_code = ["arg-type", "assignment", "attr-defined", "call-overload", "misc", "name-defined", "union-attr"]
2424

2525
[[tool.mypy.overrides]]
2626
module = ["onnx_diagnostic.ext_test_case"]

0 commit comments

Comments
 (0)