mypy icon indicating copy to clipboard operation
mypy copied to clipboard

stubgenc: add support for including class and property docstrings

Open chadrik opened this issue 1 year ago • 1 comments

Prior to this change passing --include-docstrings did not generate docstrings for classes or properties, only functions. This PR brings c-extensions up to parity with pure-python modules.

I used this feature to generate stubs for this project: https://github.com/LumaPictures/cg-stubs/blob/master/usd/stubs/pxr/Usd/init.pyi

chadrik avatar Oct 16 '24 02:10 chadrik

According to mypy_primer, this change doesn't affect type check results on a corpus of open source code. ✅

github-actions[bot] avatar Oct 16 '24 02:10 github-actions[bot]

According to mypy_primer, this change doesn't affect type check results on a corpus of open source code. ✅

github-actions[bot] avatar Feb 24 '25 02:02 github-actions[bot]

According to mypy_primer, this change doesn't affect type check results on a corpus of open source code. ✅

github-actions[bot] avatar Feb 24 '25 03:02 github-actions[bot]

@hamdanal @JelleZijlstra This is ready for review.

chadrik avatar Feb 24 '25 04:02 chadrik

According to mypy_primer, this change doesn't affect type check results on a corpus of open source code. ✅

github-actions[bot] avatar Feb 24 '25 05:02 github-actions[bot]

Hi, does anyone have a moment to review this, please!

chadrik avatar May 19 '25 23:05 chadrik