Pybind11 Stubgen Versions Save

Generate stubs for python modules

v2.3.1

7 months ago

Changes:

  • 🐛 fix: Crash on None-valued docstring of property getter (#161)

v2.3

8 months ago

Changes:

  • 🐛 fix: Inconsistent --enum-class-locations behaviour (#158)

v2.2.1

8 months ago

Changes:

  • 📝 Update --print-invalid-expressions-as-is description

v2.2

8 months ago

Changes:

  • 🐛 Fix: Python literals as default arg rendered as ... (#147)
  • ✨ Add --print-safe-value-reprs=REGEX CLI option to override the print-safe flag of Value (for custom default value representations provided via pybind11::arg_v()) (#147)
  • ✨ Add --enum-class-locations=REGEX:LOC CLI option to rewrite enum values as valid Python expressions with correct imports. (#147)

⚠️ This release detects more invalid expressions in bindings code. Previously, Enum-like representations (e.g., <MyEnum.Zero: 0>) were always treated as non-printable values and were rendered as .... The invalid expressions should be acknowledged by --enum-class-locations or --ignore-invalid-expressions.

v2.1

8 months ago

Changes:

  • ✨ Add --stub-extension CLI option (#142)

v2.0.2

8 months ago

Changes:

  • 🐛 Fix: missing isinstance check (#138)

v2.0.1

8 months ago

Changes:

  • 🐛 Fix: missing subdirectories for top-level submodules (#136)

v2.0

8 months ago

Changes:

  • 🐛 Explicitly set encoding of stubs to utf-8 (#133)
  • 🐛 Fix value representation for collections with print-unsafe elements (#132)
  • 🐛 Fix missing remap of numpy.ndarray.flags (#128)
  • ✨ Process scipy.sparse.* types the same as numpy.ndarray with --numpy-array-wrap-with-annotated (#128)
  • ✨ Support dynamic array size with --numpy-array-wrap-with-annotated (#128)
  • ❗️ Renamed CLI argument --numpy-array-wrap-with-annotated-fixed-size to --numpy-array-wrap-with-annotated (#128)

v2.0.dev1

9 months ago

Changes:

  • 🐛 Fix missing remap of numpy.ndarray.flags (#128)
  • ✨ Process scipy.sparse.* types the same as numpy.ndarray with --numpy-array-wrap-with-annotated (#128)
  • ✨ Support dynamic array size with --numpy-array-wrap-with-annotated (#128)
  • ❗️ Renamed CLI argument --numpy-array-wrap-with-annotated-fixed-size to --numpy-array-wrap-with-annotated (#128)

v1.2

9 months ago

Changes:

  • 🐛 Fix compatibility with Python 3.7..3.9 (#124)
  • 🐛 Fix incorrect list of base classes (#123)
  • ✨ Replace typing collections with builtin types (e.g. typing.List -> list) according to PEP 585 (#122)
  • ✨ Add missing translations of pybind types: function -> Callable, object/handle -> typing.Any (#121)
  • ✨ Support function-valued default arguments (#119)
  • 🐛 Fix missing properties docstrings (#118)