pybind / pybind/pybind11-stubgen
`py::native_enum`: Remove `# value = ` prints
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 361
- Forks
- 75
- PR merge metrics
- No merged PRs in 30d
Description
As a follow-up to #303 (seen there first):
We should probably remove these # value = ... comments: They carry no semantic value for types or autodocs, are mostly for debugging, but problematically do need sanitizing for some types to be stable. Same as #235 #251
To check if native enums even allow problematic types, maybe they are all safe:
https://docs.python.org/3/library/enum.html#module-contents
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the py::native_enum output and tracing the code that emits the # value = ... comments. Review the context from issues #303, #235, and #251, then verify that native enum stubs no longer contain these comments and that the existing test suite passes.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- tooling
- Issue type
- Refactor
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 65/100