Skip to content

Commit

Permalink
Fix group.close to work on 2.16 (#1793)
Browse files Browse the repository at this point in the history
Failing do to bad overload resolution in pybind11.
  • Loading branch information
jp-dark authored Jun 24, 2023
1 parent b058832 commit afb28e4
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion tiledb/cc/group.cc
Original file line number Diff line number Diff line change
Expand Up @@ -105,8 +105,11 @@ void init_group(py::module &m) {
.def("_open", &Group::open)
.def("_set_config", &Group::set_config)
.def("_config", &Group::config)
#if TILEDB_VERSION_MAJOR == 2 && TILEDB_VERSION_MINOR < 16
.def("_close", &Group::close)

#else
.def("_close", [](Group &self) { self.close(true); })
#endif
.def_property_readonly("_isopen", &Group::is_open)
.def_property_readonly("_uri", &Group::uri)
.def_property_readonly("_query_type", &Group::query_type)
Expand Down

0 comments on commit afb28e4

Please sign in to comment.