Skip to content

MAINT,TST: use inspect.cleandoc ind docstring prep.#287

Closed
rossbar wants to merge 1 commit intonumpy:masterfrom
rossbar:bug/dedent_parsing_problems
Closed

MAINT,TST: use inspect.cleandoc ind docstring prep.#287
rossbar wants to merge 1 commit intonumpy:masterfrom
rossbar:bug/dedent_parsing_problems

Conversation

@rossbar
Copy link
Contributor

@rossbar rossbar commented Jul 20, 2020

Adding this PR for reference: see discussion in #285

Switch from textwrap.dedent to inspect.cleandoc to handle
initial docstring cleaning in NumpyDocString. Does a better job of
handling the case where the first line has a different indentation
level than the remainder of the docstring.

Switch from textwrap.dedent to inspect.cleandoc to handle
initial docstring cleaning in NumpyDocString. Does a better job of
handling the case where the first line has a different indentation
level than the remainder of the docstring.
@rossbar rossbar mentioned this pull request Jul 20, 2020
@jnothman
Copy link
Member

jnothman commented Aug 2, 2020

CI is failing

@rossbar
Copy link
Contributor Author

rossbar commented Aug 3, 2020

Yes this is discussed here. This PR is mostly for illustrative purposes to aid discussion in #286. I will close it in favor of #286 for now!

@rossbar rossbar closed this Aug 3, 2020
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.

2 participants