Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Optionally disable the # value = ... in Printer #235

Open
dagardner-nv opened this issue Dec 10, 2024 · 0 comments
Open

Optionally disable the # value = ... in Printer #235

dagardner-nv opened this issue Dec 10, 2024 · 0 comments

Comments

@dagardner-nv
Copy link

dagardner-nv commented Dec 10, 2024

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 __.

dagardner-nv added a commit to dagardner-nv/utilities that referenced this issue Dec 11, 2024
…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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant