Skip to content

Commit d54b58d

Browse files
committed
upgrade to nanobind v2.10.0
1 parent 6e05d9f commit d54b58d

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[build-system]
22
requires = [
33
"scikit-build-core",
4-
"nanobind==2.9.2",
4+
"nanobind==2.10.0",
55
"typing_extensions",
66
"hatch-fancy-pypi-readme"
77
]

src/python/init.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -256,7 +256,7 @@ int tp_init_array(PyObject *self, PyObject *args, PyObject *kwds) noexcept {
256256
} else {
257257
PyObject *args2[2] = { nullptr, arg };
258258
element = nb::steal(
259-
NB_VECTORCALL((PyObject *) value_tp, args2 + 1,
259+
PyObject_Vectorcall((PyObject *) value_tp, args2 + 1,
260260
1 | PY_VECTORCALL_ARGUMENTS_OFFSET, nullptr));
261261
if (NB_UNLIKELY(!element.is_valid())) {
262262
nb::error_scope scope;

src/python/meta.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -380,7 +380,7 @@ void promote(nb::object *o, size_t n, bool select) {
380380
args[1] = o[i].ptr();
381381

382382
PyObject *res =
383-
NB_VECTORCALL(h2.ptr(), args + 1,
383+
PyObject_Vectorcall(h2.ptr(), args + 1,
384384
PY_VECTORCALL_ARGUMENTS_OFFSET | 1, nullptr);
385385

386386
if (NB_UNLIKELY(!res)) {

0 commit comments

Comments
 (0)