Skip to content

Commit 5cde3fc

Browse files
authored
Fix: Python serialized_length missing argument (#714)
Closes #683
1 parent 40d127f commit 5cde3fc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

python/lib.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1236,7 +1236,7 @@ PYBIND11_MODULE(compiled, m) {
12361236
i.def_property_readonly( //
12371237
"dtype", [](dense_index_py_t const& index) -> scalar_kind_t { return index.scalar_kind(); });
12381238

1239-
i.def_property_readonly("serialized_length", &dense_index_py_t::serialized_length);
1239+
i.def_property_readonly("serialized_length", [](dense_index_py_t const& self) -> std::size_t { return self.serialized_length({}); });
12401240
i.def_property_readonly("memory_usage", &dense_index_py_t::memory_usage);
12411241

12421242
i.def_property("expansion_add", &dense_index_py_t::expansion_add, &dense_index_py_t::change_expansion_add);

0 commit comments

Comments
 (0)