You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Reconstruct defaulted arg values from docstring (#147)
Changes:
- Recognize Python literal strings in default arg as "print-safe"
- Add `--print-safe-value-reprs=REGEX` CLI option to override the
print-safe flag of `Value` (for custom reprs provided via
`pybind11::arg_v()`)
- Add `--enum-class-locations=REGEX:LOC` CLI option to rewrite enum
values as valid Python expressions with correct imports. This change
introduces new errors since earlier Enum-like representations (e.g.
`<MyEnum.Value: 1>`) were treated as non-printable `Value`s and rendered
as `...`.
0 commit comments