Skip to content

Inspect class doc output#17685

Open
jcapriot wants to merge 14 commits into
python:masterfrom
jcapriot:inspect-class-doc-output
Open

Inspect class doc output#17685
jcapriot wants to merge 14 commits into
python:masterfrom
jcapriot:inspect-class-doc-output

Conversation

@jcapriot

Copy link
Copy Markdown

Fixes #16543

Outputs the class docstring in the InspectionStubGenerator, dependent upon the --include-doc setting.

I've attempted to add tests to verify it, but it looks like the stubgen pytests are skipped? So i've also attempted to add it as a setting in the github action testing script, Obviously if you all know more about the stubgen tests and where best to add it, let me know. In the meantime I've tested this locally and it seems to produce the expected behavoir. It now inclused docs and looks to put them at the correct indent level.

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

Successfully merging this pull request may close these issues.

stubgen: Class docstring not included in stub when combining --include-docstrings with --inspect-mode

1 participant