Skip to content

Add explicit return type to _domain lambda for pybind11>=3.0.2#2299

Merged
kounelisagis merged 1 commit intomainfrom
agis/explicit-return-type
Feb 19, 2026
Merged

Add explicit return type to _domain lambda for pybind11>=3.0.2#2299
kounelisagis merged 1 commit intomainfrom
agis/explicit-return-type

Conversation

@kounelisagis
Copy link
Member

pybind11 3.0.2 changed py::make_tuple to return py::typing::Tuple<Args...> instead of py::tuple (x-ref pybind/pybind11#5881), which breaks lambda return type deduction when different branches return tuples of different types. The _domain lambda in domain.cc was the only one missing an explicit -> py::tuple return type - all other similar lambdas in the codebase already had one. Adding it fixes the build.

Closes #2297
Closes #2298
Closes TileDB-Inc/centralized-tiledb-nightlies#67
Closes TileDB-Inc/conda-forge-nightly-controller#245

cc @jdblischak

Copy link
Member

@ihnorton ihnorton left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks. Let's put a version bound in place

@kounelisagis kounelisagis merged commit c1918c9 into main Feb 19, 2026
27 checks passed
@kounelisagis kounelisagis deleted the agis/explicit-return-type branch February 19, 2026 09:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

2 participants