Per #21572 we are switching to nanobind. There is a flag to choose pybind11 vs nanobind, currently defaulted to pybind11.
If we try a documentation preview bazel run //doc/pydrake:build --@drake//tools/flags:python_binder=nanobind -- --serve with nanobind, it is notably worse. Most functions are missing signatures.
This isn't urgent (since we won't switch the website to use the new docs right away), but still needs attention. Ideally we'd fix it before switching the default (in 3 months), but at worst we could force the docs build to use pybind11, and then fix it before the final pybind11 removal (in 6 months).
Possibly sphinx-autodoc-typehints would help us fix this.
Per #21572 we are switching to nanobind. There is a flag to choose pybind11 vs nanobind, currently defaulted to pybind11.
If we try a documentation preview
bazel run //doc/pydrake:build --@drake//tools/flags:python_binder=nanobind -- --servewith nanobind, it is notably worse. Most functions are missing signatures.This isn't urgent (since we won't switch the website to use the new docs right away), but still needs attention. Ideally we'd fix it before switching the default (in 3 months), but at worst we could force the docs build to use pybind11, and then fix it before the final pybind11 removal (in 6 months).
Possibly
sphinx-autodoc-typehintswould help us fix this.