Skip to content

Commit

Permalink
Release 2.2 (#148)
Browse files Browse the repository at this point in the history
  • Loading branch information
sizmailov authored Sep 20, 2023
1 parent 27d16df commit aa99863
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 1 deletion.
16 changes: 16 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,22 @@ Changelog
=========


Version 2.2 (Sep 20, 2023)
--------------------------
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`.


Version 2.1 (Sep 6, 2023)
--------------------------
Changes:
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
maintainer_email="[email protected]",
description="PEP 561 type stubs generator for pybind11 modules",
url="https://github.com/sizmailov/pybind11-stubgen",
version="2.1",
version="2.2",
long_description=open("README.md").read(),
long_description_content_type="text/markdown",
license="BSD",
Expand Down

0 comments on commit aa99863

Please sign in to comment.