Skip to content

Conversation

@dependabot
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Feb 1, 2026

Updates the requirements on nanobind to permit the latest version.

Changelog

Sourced from nanobind's changelog.

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 (nb_func, nb_method, nb_meta, etc.) immutable, which allows CPython to specialize generic LOAD_ATTR opcodes to faster type-specific versions (LOAD_ATTR_METHOD for method calls, LOAD_ATTR_CLASS for static attribute lookups). (PR [#1257](https://github.com/wjakob/nanobind/issues/1257) <https://github.com/wjakob/nanobind/pull/1257>__).

  • Added the :cpp:class:nb::never_destruct <never_destruct> class binding annotation to inform nanobind that it should not bind the destructor. (PR [#1251](https://github.com/wjakob/nanobind/issues/1251) <https://github.com/wjakob/nanobind/pull/1251>, commit 4ba51f <https://github.com/wjakob/nanobind/commit/4ba51fcf795971c5d603d875ae4184bc0c9bd8e6>).

  • Argument annotations for std::optional<T>-typed arguments now implicitly have the :cpp:func:.none() <arg::none> annotation applied (i.e., no need to additionally specify nb::arg("..").none()). (PR [#1262](https://github.com/wjakob/nanobind/issues/1262) <https://github.com/wjakob/nanobind/pull/1262>, commit 425ca1 <https://github.com/wjakob/nanobind/commit/425ca1d10dfda60de122d681099500f6e9718985>).

  • Removed a redundant hash table type, reducing the size of libnanobind by 2.5KiB. (commit 4d53cd <https://github.com/wjakob/nanobind/commit/4d53cd184a759129122d678466b7055aef3dfac6>__).

  • Added Python 3.12-3.14 symbols to linker scripts. (commit 36d4a6 <https://github.com/wjakob/nanobind/commit/36d4a60bd1f9ecb4ac6c42489db29719c5b3d77a>__).

  • Fixed a bug where call_guard could cause an extra copy of the return value. (PR [#1249](https://github.com/wjakob/nanobind/issues/1249) <https://github.com/wjakob/nanobind/pull/1249>__).

  • Don't link nb_ft.cpp in non-free-threaded builds to avoid linker warnings about empty compilation units. (PR `#1271

... (truncated)

Commits
  • 22acf11 v2.11.0 release
  • 41840c0 changelog updates
  • 8771be7 stubgen.py: include module docstrings
  • fdd1f00 stubgen.py Performance Optimization (#1275)
  • 425ca1d tweaks to reduce binary size
  • ac63d3a Implicit nb::none() annotation for std::optional\<T>-typed arguments (#1262)
  • cb90753 fix move construction of Eigen dense arrays
  • d8237b8 minor docs structure tweaks
  • 5b64739 Don't link nb_ft.cpp in non-free-threaded builds (#1271)
  • 301596f Fix conversion of size-zero vectors to Eigen::Map/Eigen::Ref on Numpy 2.4...
  • 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 rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will 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 version will 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 dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

Updates the requirements on [nanobind](https://github.com/wjakob/nanobind) to permit the latest version.
- [Changelog](https://github.com/wjakob/nanobind/blob/master/docs/changelog.rst)
- [Commits](wjakob/nanobind@v0.0.1...v2.11.0)

---
updated-dependencies:
- dependency-name: nanobind
  dependency-version: 2.11.0
  dependency-type: direct:development
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot bot added lang: python PRs or issues related to Python part: dependencies PRs or issues related to dependencies labels Feb 1, 2026
@github-actions
Copy link
Contributor

github-actions bot commented Feb 1, 2026

Test Results

14 tests  ±0   14 ✅ ±0   50s ⏱️ -2s
 1 suites ±0    0 💤 ±0 
 1 files   ±0    0 ❌ ±0 

Results for commit b7a591e. ± Comparison against base commit be103fa.

@github-actions
Copy link
Contributor

github-actions bot commented Feb 1, 2026

Test Results

14 tests  ±0   14 ✅ ±0   55s ⏱️ +3s
 1 suites ±0    0 💤 ±0 
 1 files   ±0    0 ❌ ±0 

Results for commit b7a591e. ± Comparison against base commit be103fa.

♻️ This comment has been updated with latest results.

@timkpaine timkpaine merged commit 0f2636d into main Feb 1, 2026
4 checks passed
@timkpaine timkpaine deleted the dependabot/pip/nanobind-lt-2.12.0 branch February 1, 2026 20:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

lang: python PRs or issues related to Python part: dependencies PRs or issues related to dependencies

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant