Skip to content

Commit aa99863

Browse files
authored
Release 2.2 (#148)
1 parent 27d16df commit aa99863

File tree

2 files changed

+17
-1
lines changed

2 files changed

+17
-1
lines changed

CHANGELOG.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,22 @@ Changelog
22
=========
33

44

5+
Version 2.2 (Sep 20, 2023)
6+
--------------------------
7+
Changes:
8+
9+
- 🐛 Fix: Python literals as default arg rendered as `...` (#147)
10+
- ✨ Add `--print-safe-value-reprs=REGEX` CLI option to override the print-safe flag
11+
of Value (for custom default value representations provided via `pybind11::arg_v()`) (#147)
12+
- ✨ Add `--enum-class-locations=REGEX:LOC` CLI option to rewrite enum values as valid
13+
Python expressions with correct imports. (#147)
14+
15+
⚠️ This release detects more invalid expressions in bindings code.
16+
Previously Enum-like representations (e.g. `<MyEnum.Zero: 0>`) were always treated
17+
as non-printable values and were rendered as `...`.
18+
The invalid expressions should be acknowledged by `--enum-class-locations` or `--ignore-invalid-expressions`.
19+
20+
521
Version 2.1 (Sep 6, 2023)
622
--------------------------
723
Changes:

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
maintainer_email="[email protected]",
77
description="PEP 561 type stubs generator for pybind11 modules",
88
url="https://github.com/sizmailov/pybind11-stubgen",
9-
version="2.1",
9+
version="2.2",
1010
long_description=open("README.md").read(),
1111
long_description_content_type="text/markdown",
1212
license="BSD",

0 commit comments

Comments
 (0)