mypy
mypy copied to clipboard
Inspect class doc output
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.