You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Indeed, I chose to use the __doc__ attribute directly to avoid inspect populating the docstring from parent classes. But I guess I could use inspect.cleandoc instead of textwrap.dedent!
Leading whitespace on class comments is not stripped correctly when the first line of text is on the same line as the triple-quotes.
A class like the following:
ends up having whitespace stripped to look like this:
whereas this is expected:
The intended behaviour is specified in PEP-257: Docstring Conventions > Handling Docstring Indentation and implemented in
inspect.cleandoc
(which is called byinspect.getdoc
)This is only a problem for classes, since elsewhere pytkdocs does use
inspect.getdoc
The text was updated successfully, but these errors were encountered: