Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

gh-104683: Argument Clinic: refactor format_docstring() #107623

Merged

Conversation

erlend-aasland
Copy link
Contributor

@erlend-aasland erlend-aasland commented Aug 4, 2023

Extract helper methods for formatting the signature and parameter
sections, and clean up the remaining function body.

Extract helper methods for formatting the signature and parameter
sections, and clean up the remaining function body.
Tools/clinic/clinic.py Outdated Show resolved Hide resolved
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
@AlexWaygood
Copy link
Member

Looks like there's a bug somewhere -- CI is failing

@erlend-aasland
Copy link
Contributor Author

Looks like there's a bug somewhere -- CI is failing

Yes, splitlines() is not quite the same as the old comprehension :(

@erlend-aasland
Copy link
Contributor Author

I reverted the splitlines change.

Tools/clinic/clinic.py Outdated Show resolved Hide resolved
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
Tools/clinic/clinic.py Outdated Show resolved Hide resolved
erlend-aasland and others added 3 commits August 8, 2023 08:52
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
Tools/clinic/clinic.py Outdated Show resolved Hide resolved
@erlend-aasland erlend-aasland enabled auto-merge (squash) August 8, 2023 20:43
@erlend-aasland
Copy link
Contributor Author

Thanks for the reviews, Adam and Alex!

@erlend-aasland erlend-aasland merged commit 7350738 into python:main Aug 8, 2023
15 of 16 checks passed
@erlend-aasland erlend-aasland deleted the clinic/refactor-format-docstring branch August 8, 2023 21:18
@erlend-aasland
Copy link
Contributor Author

That's strange; automerge continued through even though the Windows (x86) CI failed (apparently it failed then succeeded because some of the flakey tests were flakey).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants