Skip to content

3.0.0

Latest

Choose a tag to compare

@virtuald virtuald released this 25 Sep 04:23
c8167c3

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-comments to 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 in types (#278) by @skarndev and @ax3l
  • 🐛 Filter internal members of pybind11 native enums (#303) by @ax3l
  • 🐛 Avoid RuntimeError: dictionary changed size during iteration when 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: