stubgenc: add support for including class and property docstrings
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
According to mypy_primer, this change doesn't affect type check results on a corpus of open source code. ✅
According to mypy_primer, this change doesn't affect type check results on a corpus of open source code. ✅
According to mypy_primer, this change doesn't affect type check results on a corpus of open source code. ✅
@hamdanal @JelleZijlstra This is ready for review.
According to mypy_primer, this change doesn't affect type check results on a corpus of open source code. ✅
Hi, does anyone have a moment to review this, please!