Repository navigation
Maintainership has passed from @sizmailov to @ax3l, @skarndev, and @virtuald,
and the repository has been transferred to the pybind11 organization.
Many thanks to @sizmailov for creating pybind11-stubgen and maintaining it over the years!
Breaking changes:
- ❗️ Require Python 3.10 or newer; drop support for Python 3.7–3.9 (#284, #285) by @ax3l and @gentlegiantJGC
- ❗️ Disable
# value = ...comments by default; use--print-value-commentsto restore them (#251) by @dyollb and @ax3l
Changes:
- ✨ Support generating stubs for multiple modules in a single CLI invocation (#292) by @birgerbr
- ✨ Add basic support for PEP 695 function type parameters in docstring signatures on Python 3.12+;
class type parameters, variadics, and constraints are not supported (#291) by @gentlegiantJGC - ✨ Preserve docstrings for static properties exposed as fields, with Python 3.12+ and pybind11 2.10.1+ (#308) by @markuspi
- 🐛 Order classes by dependencies rather than alphabetically, so base classes and class-body references
appear before their dependents, including nested classes (#238)
by @ax3l, @juelg, @daltairwalter, @skarndev, and @sizmailov - 🐛 Fix nested qualified names in pybind11 docstring signatures (#280) by @ax3l, @gentlegiantJGC, @sarlinpe, and @skarndev
- 🐛 Strip current-module prefixes from nested type annotations and correctly parse runtime generic annotations (#301) by @ax3l
- 🐛 Resolve hidden builtin types, such as
mappingproxy, to their importable names intypes(#278) by @skarndev and @ax3l - 🐛 Filter internal members of pybind11 native enums (#303) by @ax3l
- 🐛 Avoid
RuntimeError: dictionary changed size during iterationwhen attribute access modifies a class dictionary (#310) by @htruscott - 🐛 Make ordering of aliased and non-aliased imports deterministic (#293) by @cjwatson
- 🐛 Remove unstable memory addresses from additional object representations, including
WeakKeyDictionary(#295) by @ax3l - 🐛 Remove leading newlines from docstrings to avoid extra blank lines in generated stubs (#274) by @gentlegiantJGC
Development:
- 🔧 Move package metadata from
setup.pytopyproject.toml(#281) by @gentlegiantJGC - 🔧 Add pybind11 3.0 test coverage and update expected stubs for pybind11 3.0.3 (#289, #296) by @gentlegiantJGC and @ax3l
- 🔧 Add local test-stub regeneration via tox and fix demo builds on Clang/macOS (#287) by @skarndev and @ax3l
- 🔧 Modernize CI and publishing, migrate development tooling to uv and Ruff, and automate pre-commit updates (#279, #283, #290, #307, #314)
by @virtuald, @gentlegiantJGC, @skarndev, and @ax3l