Skip to content

Releases: sizmailov/pybind11-stubgen

v2.3.1: Make sure splitlines is not called on None (#161)

21 Oct 01:37
e367e9c
Compare
Choose a tag to compare

Changes:

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

2.3

27 Sep 14:56
b8decd4
Compare
Choose a tag to compare
2.3

Changes:

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

2.2.1

23 Sep 02:18
400f557
Compare
Choose a tag to compare

Changes:

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

2.2

20 Sep 08:35
aa99863
Compare
Choose a tag to compare
2.2

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.

2.1

06 Sep 04:27
ca280d8
Compare
Choose a tag to compare
2.1

Changes:

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

2.0.2

04 Sep 07:29
afb3fdb
Compare
Choose a tag to compare

Changes:

  • 🐛 Fix: missing isinstance check (#138)

2.0.1

02 Sep 01:41
0b02889
Compare
Choose a tag to compare

Changes:

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

2.0.dev1

01 Sep 01:15
10ebca3
Compare
Choose a tag to compare
2.0.dev1 Pre-release
Pre-release

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)

2.0

01 Sep 14:37
51cc96c
Compare
Choose a tag to compare
2.0

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)

1.2

31 Aug 09:58
6499225
Compare
Choose a tag to compare
1.2

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)