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
I'm running into an issue where pybind11-stubgen is appending # value = ... in stub files.
Similar to issue #222, the sub output includes values which change on every build, specifically repr's for PyCapsule objects:
attr : dict # value = {'key': <capsule object "PyObject *(InfoData, PyObject *)" at 0x7f495e2efba0>}
I tried specifying --print-safe-value-reprs to avoid the this particular attribute however it doesn't appear to be invoked in this case.
In my case the attribute in question is private and the name is prefixed with __, an alternative for my use-case would be a flag to exclude names beginning with __.
The text was updated successfully, but these errors were encountered:
…hon modules which we call from Python, and newer versions of stubgen cause unique stubs to be built with each build even in the absense of changes ref: sizmailov/pybind11-stubgen#235
I'm running into an issue where
pybind11-stubgen
is appending# value = ...
in stub files.Similar to issue #222, the sub output includes values which change on every build, specifically repr's for
PyCapsule
objects:I tried specifying
--print-safe-value-reprs
to avoid the this particular attribute however it doesn't appear to be invoked in this case.In my case the attribute in question is private and the name is prefixed with
__
, an alternative for my use-case would be a flag to exclude names beginning with__
.The text was updated successfully, but these errors were encountered: