Debian Patches
Status for nanobind/2.11.0-3
| Patch | Description | Author | Forwarded | Bugs | Origin | Last update |
|---|---|---|---|---|---|---|
| 0001-Hardcode-path-to-nanobind-installation.patch | Hardcode path to nanobind installation | Timo Röhling <roehling@debian.org> | not-needed | 2024-04-06 | ||
| upstream/0002-Fix-regression-introduced-in-PR-1262.patch | Fix regression introduced in PR #1262 PR #1262 added the ability to auto-infer ``nb::none()`` annotations in function bindings. This feature was not tested for methods and suffers from an off-by-one error that keeps it from working in that context: we incorrectly generate an argument annotation for 'self' too, which shifts the implicit annotations to the next argument (or even beyond the last argument, meaning that it will be ignored). The commit fixes this. |
Wenzel Jakob <wenzel.jakob@epfl.ch> | yes | upstream | upstream, https://github.com/wjakob/nanobind/commit/ed7ab31f5ffe313b2ca945573e29112ea5e475b2 | 2026-02-03 |
| upstream/0003-Fix-missing-convert-flag-for-implicit-std-optional-n.patch | Fix missing convert flag for implicit std::optional none annotation (fixes #1293) PR #1262 pre-initialized argument flags with accepts_none for std::optional<> parameters but omitted cast_flags::convert, silently disabling implicit type conversions for all arguments of functions that have any std::optional parameter without explicit nb::arg annotations. The fix pre-initializes with convert and applies accepts_none in a separate step after func_extra_apply, so that explicit annotations (e.g. noconvert()) are not clobbered. The |= in func_extra_apply is reverted to = accordingly. |
Wenzel Jakob <wenzel.jakob@epfl.ch> | yes | upstream | upstream, https://github.com/wjakob/nanobind/commit/1f96278c09ec1f7110105f5e2e3dbd2f08dc66a4 | 2026-02-16 |
