Skip to content

Commit 8a4cc4a

Browse files
authored
Support pybind11 3.0: replace deprecated py::module with py::module_ (#883)
1 parent ad9e734 commit 8a4cc4a

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

apis/python/src/tiledbvcf/binding/pyarrow_helpers.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ using namespace tiledb::vcf;
4444
* @return py::object Arrow table
4545
*/
4646
py::object _buffer_to_table(std::shared_ptr<ArrayBuffers> buffers) {
47-
auto pa = py::module::import("pyarrow");
47+
auto pa = py::module_::import("pyarrow");
4848
auto pa_table_from_arrays = pa.attr("Table").attr("from_arrays");
4949
auto pa_array_import = pa.attr("Array").attr("_import_from_c");
5050
auto pa_schema_import = pa.attr("Schema").attr("_import_from_c");

apis/python/src/tiledbvcf/binding/sample_stats.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ namespace py = pybind11;
3535
using namespace py::literals;
3636
using namespace tiledb::vcf;
3737

38-
void load_sample_stats(py::module& m) {
38+
void load_sample_stats(py::module_& m) {
3939
m.def(
4040
"sample_qc",
4141
[](const std::string& dataset_uri,

apis/python/src/tiledbvcf/binding/vcf_arrow.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -316,7 +316,7 @@ void build_arrow_array_from_buffer(
316316
}
317317

318318
py::object buffers_to_table(std::vector<std::shared_ptr<BufferInfo>>& buffers) {
319-
auto pa = py::module::import("pyarrow");
319+
auto pa = py::module_::import("pyarrow");
320320
auto pa_table_from_arrays = pa.attr("Table").attr("from_arrays");
321321
auto pa_array_import = pa.attr("Array").attr("_import_from_c");
322322
auto pa_schema_import = pa.attr("Schema").attr("_import_from_c");

0 commit comments

Comments
 (0)