Skip to content

Commit db0c39e

Browse files
committed
Add pragma to ignore an instance of nd=
1 parent a07016e commit db0c39e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

python/tensorstore/array_type_caster.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -277,7 +277,7 @@ pybind11::object GetNumpyArrayImpl(SharedArrayView<const void> value,
277277
auto obj = py::reinterpret_steal<py::array>(PyArray_NewFromDescr(
278278
/*subtype=*/&PyArray_Type,
279279
/*descr=*/reinterpret_cast<PyArray_Descr*>(py_dtype.release().ptr()),
280-
/*nd=*/static_cast<int>(value.rank()),
280+
/*nd=*/static_cast<int>(value.rank()), // codespell:ignore nd
281281
/*dims=*/shape,
282282
/*strides=*/strides,
283283
/*data=*/const_cast<void*>(value.data()), flags, nullptr));

0 commit comments

Comments
 (0)