Skip to content

2.2

Compare
Choose a tag to compare
@sizmailov sizmailov released this 20 Sep 08:35
· 35 commits to master since this release
aa99863

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.