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 viapybind11::arg_v()
) (#147) - ✨ Add
--enum-class-locations=REGEX:LOC
CLI option to rewrite enum values as valid
Python expressions with correct imports. (#147)
<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
.