Generate stubs for python modules
Changes:
None
-valued docstring of property getter (#161)Changes:
--enum-class-locations
behaviour (#158)Changes:
--print-invalid-expressions-as-is
descriptionChanges:
...
(#147)--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)--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
.
Changes:
Changes:
isinstance
check (#138)Changes:
Changes:
numpy.ndarray.flags
(#128)scipy.sparse.*
types the same as numpy.ndarray
with --numpy-array-wrap-with-annotated
(#128)--numpy-array-wrap-with-annotated
(#128)--numpy-array-wrap-with-annotated-fixed-size
to --numpy-array-wrap-with-annotated
(#128)Changes:
numpy.ndarray.flags
(#128)scipy.sparse.*
types the same as numpy.ndarray
with --numpy-array-wrap-with-annotated
(#128)--numpy-array-wrap-with-annotated
(#128)--numpy-array-wrap-with-annotated-fixed-size
to --numpy-array-wrap-with-annotated
(#128)Changes:
typing
collections with builtin types (e.g. typing.List
-> list
) according
to PEP 585 (#122)function
-> Callable
, object
/handle
-> typing.Any
(#121)