address residual few remarks

This commit is contained in:
ptosco
2023-11-28 15:58:00 +01:00
committed by greg landrum
parent 329bf31edb
commit c089eed1df
6 changed files with 35 additions and 30 deletions

View File

@@ -136,7 +136,7 @@ struct sparseIntVec_wrapper {
boost::shared_ptr<SparseIntVect<IndexType>>>(
className, sparseIntVectDoc.c_str(),
python::init<IndexType>("Constructor"))
.def(python::init<std::string>())
.def(python::init<std::string>(python::args("self", "pkl")))
// Note: we cannot support __len__ because, at least at the moment
// (BPL v1.34.1), it must return an int.
.def("__setitem__", &SparseIntVect<IndexType>::setVal,