Update nanobind requirement from <2.12.0 to <2.13.0
Type: Pull Request
State: Open
Association: Unknown
Comments: 1
(9 days ago)
(9 days ago)
part: dependencies lang: python
Updates the requirements on nanobind to permit the latest version.
Changelog
Sourced from nanobind's changelog.
Version 2.12.0 (Feb 25, 2025)
Added :cpp:class:
nb::memoryviewthat wraps the Pythonmemoryviewtype. (PR[#1291](https://github.com/wjakob/nanobind/issues/1291) <https://github.com/wjakob/nanobind/pull/1291>__).Made stub generation compatible with the Realtime Sanitizer (RTSan) from Clang 20. (PR
[#1285](https://github.com/wjakob/nanobind/issues/1285) <https://github.com/wjakob/nanobind/pull/1285>__).Fixed a use-after-free when calling functions after their module has been deleted. The internals state is now reference-counted with references held by modules, functions, and types. This also fixes memory leaks reported in issue
[#957](https://github.com/wjakob/nanobind/issues/957) <https://github.com/wjakob/nanobind/issues/957>. (PR[#1287](https://github.com/wjakob/nanobind/issues/1287) <https://github.com/wjakob/nanobind/pull/1287>).Fixed two regressions from v2.11.0 related to the implicit
std::optional:cpp:func:.none() <arg::none>annotation: an off-by-one error that applied the annotation to the wrong argument for methods, and a missingconvertflag that silently disabled implicit type conversions. (issues[#1281](https://github.com/wjakob/nanobind/issues/1281) <https://github.com/wjakob/nanobind/issues/1281>,[#1293](https://github.com/wjakob/nanobind/issues/1293) <https://github.com/wjakob/nanobind/issues/1293>, commitsed7ab31 <https://github.com/wjakob/nanobind/commit/ed7ab31f5ffe313b2ca945573e29112ea5e475b2>,1f96278 <https://github.com/wjakob/nanobind/commit/1f96278c09ec1f7110105f5e2e3dbd2f08dc66a4>).ABI version 19.
Version 2.11.0 (Jan 29, 2026)
This release improves binding performance using CPython's adaptive specializing interpreter (
PEP 659 <https://peps.python.org/pep-0659/>__). The speedups are automatic and require no changes to binding code:.. list-table:: :header-rows: 1
- Operation
- Speedup
- Requirements
- Method calls
- 1.22x faster
- Python 3.11+
- Static attribute lookups
- 1.63x faster
- Python 3.14+
This was achieved by making a number of nanobind-internal classes
... (truncated)
Commits
2a61ad2v2.12.0 releaseaa95611changelog updates43a84e3Add explicit casts to avoid compiler warnings (#1294)52012dadocs: minor fix for classenum_(#1295)8907453Fix standard macro redefinition warnings from GCC 15.2.1 (#1289)1f96278Fix missing convert flag for implicit std::optional none annotation (fixes #1...7206bc2Addnb::memoryviewwrapper class (#1291)d09aa0aMentionnanobind_jsonin the nanobind docs (#1288)a989344fix RTD build0cf32e1CMake: add support for the Realtime Sanitizer (RTSan) (#1285)- Additional commits viewable in compare view
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
@dependabot rebasewill rebase this PR@dependabot recreatewill recreate this PR, overwriting any edits that have been made to it@dependabot show <dependency name> ignore conditionswill show all of the ignore conditions of the specified dependency@dependabot ignore this major versionwill close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)@dependabot ignore this minor versionwill close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)@dependabot ignore this dependencywill close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
Package Dependencies
Technical Details
| ID: | 14242539 |
| UUID: | 4006604501 |
| Node ID: | PR_kwDOMUJLkM7HGNtu |
| Host: | GitHub |
| Repository: | python-project-templates/hatch-cpp |