René's URL Explorer Experiment


Title: gh-104683: Argument Clinic: refactor format_docstring() by erlend-aasland · Pull Request #107623 · python/cpython · GitHub

Open Graph Title: gh-104683: Argument Clinic: refactor format_docstring() by erlend-aasland · Pull Request #107623 · python/cpython

X Title: gh-104683: Argument Clinic: refactor format_docstring() by erlend-aasland · Pull Request #107623 · python/cpython

Description: Extract helper methods for formatting the signature and parameter sections, and clean up the remaining function body. Issue: Modernise code in Tools/clinic/ #104683

Open Graph Description: Extract helper methods for formatting the signature and parameter sections, and clean up the remaining function body. Issue: Modernise code in Tools/clinic/ #104683

X Description: Extract helper methods for formatting the signature and parameter sections, and clean up the remaining function body. Issue: Modernise code in Tools/clinic/ #104683

Opengraph URL: https://github.com/python/cpython/pull/107623

X: @github

direct link

Domain: github.com

route-pattern/_view_fragments/voltron/pull_requests/show/:user_id/:repository/:id/pull_request_layout(.:format)
route-controllervoltron_pull_requests_fragments
route-actionpull_request_layout
fetch-noncev2:eee0ef5a-b494-42f6-1917-22ae127e7550
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idBE4C:2A7108:47D61F:636BC1:696A22F9
html-safe-nonce649133d9c91844e1772ac9a77861c8ed732f1158bb9a060e350411873ecd406d
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCRTRDOjJBNzEwODo0N0Q2MUY6NjM2QkMxOjY5NkEyMkY5IiwidmlzaXRvcl9pZCI6IjcyNzkxOTQwMjYyNDM5MjQ3MjkiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmacf8ab4012bad1b96c98a8916c9316b32b64d2e6d4de49003b54d7dd520ec0970b
hovercard-subject-tagpull_request:1462813099
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/pull_requests_fragments/pull_request_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/voltron/pull_requests/show/python/cpython/107623/pull_request_layout
twitter:imagehttps://opengraph.githubassets.com/a118b8ad027b523ad29d8e8b12c7ec0fcbeb42c46f76e1d4cbbd15ef90685d46/python/cpython/pull/107623
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/a118b8ad027b523ad29d8e8b12c7ec0fcbeb42c46f76e1d4cbbd15ef90685d46/python/cpython/pull/107623
og:image:altExtract helper methods for formatting the signature and parameter sections, and clean up the remaining function body. Issue: Modernise code in Tools/clinic/ #104683
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameerlend-aasland
hostnamegithub.com
expected-hostnamegithub.com
None014f3d193f36b7d393f88ca22d06fbacd370800b40a547c1ea67291e02dc8ea3
turbo-cache-controlno-preview
go-importgithub.com/python/cpython git https://github.com/python/cpython.git
octolytics-dimension-user_id1525981
octolytics-dimension-user_loginpython
octolytics-dimension-repository_id81598961
octolytics-dimension-repository_nwopython/cpython
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id81598961
octolytics-dimension-repository_network_root_nwopython/cpython
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
released515f6f09fa57a93bf90355cb894eb84ca4f458f
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/python/cpython/pull/107623#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F107623
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub SparkBuild and deploy intelligent appshttps://github.com/features/spark
GitHub ModelsManage and compare promptshttps://github.com/features/models
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
GitHub SponsorsFund open source developershttps://github.com/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/accelerator
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://github.com/security/advanced-security
Copilot for BusinessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F107623
Sign up https://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fpull_requests_fragments%2Fpull_request_layout&source=header-repo&source_repo=python%2Fcpython
Reloadhttps://github.com/python/cpython/pull/107623
Reloadhttps://github.com/python/cpython/pull/107623
Reloadhttps://github.com/python/cpython/pull/107623
python https://github.com/python
cpythonhttps://github.com/python/cpython
Please reload this pagehttps://github.com/python/cpython/pull/107623
Notifications https://github.com/login?return_to=%2Fpython%2Fcpython
Fork 33.9k https://github.com/login?return_to=%2Fpython%2Fcpython
Star 71.1k https://github.com/login?return_to=%2Fpython%2Fcpython
Code https://github.com/python/cpython
Issues 5k+ https://github.com/python/cpython/issues
Pull requests 2.1k https://github.com/python/cpython/pulls
Actions https://github.com/python/cpython/actions
Projects 31 https://github.com/python/cpython/projects
Security Uh oh! There was an error while loading. Please reload this page. https://github.com/python/cpython/security
Please reload this pagehttps://github.com/python/cpython/pull/107623
Insights https://github.com/python/cpython/pulse
Code https://github.com/python/cpython
Issues https://github.com/python/cpython/issues
Pull requests https://github.com/python/cpython/pulls
Actions https://github.com/python/cpython/actions
Projects https://github.com/python/cpython/projects
Security https://github.com/python/cpython/security
Insights https://github.com/python/cpython/pulse
Sign up for GitHub https://github.com/signup?return_to=%2Fpython%2Fcpython%2Fissues%2Fnew%2Fchoose
terms of servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://github.com/login?return_to=%2Fpython%2Fcpython%2Fissues%2Fnew%2Fchoose
Jump to bottomhttps://github.com/python/cpython/pull/107623#issue-comment-box
erlend-aaslandhttps://github.com/erlend-aasland
python:mainhttps://github.com/python/cpython/tree/main
erlend-aasland:clinic/refactor-format-docstringhttps://github.com/erlend-aasland/cpython/tree/clinic/refactor-format-docstring
gh-104683: Argument Clinic: refactor format_docstring() https://github.com/python/cpython/pull/107623#top
erlend-aaslandhttps://github.com/erlend-aasland
python:mainhttps://github.com/python/cpython/tree/main
erlend-aasland:clinic/refactor-format-docstringhttps://github.com/erlend-aasland/cpython/tree/clinic/refactor-format-docstring
Conversation 16 https://github.com/python/cpython/pull/107623
Commits 9 https://github.com/python/cpython/pull/107623/commits
Checks 0 https://github.com/python/cpython/pull/107623/checks
Files changed https://github.com/python/cpython/pull/107623/files
Please reload this pagehttps://github.com/python/cpython/pull/107623
https://github.co/hiddenchars
https://github.com/python/cpython/pull/{{ revealButtonHref }}
https://github.com/erlend-aasland
erlend-aaslandhttps://github.com/erlend-aasland
Aug 4, 2023https://github.com/python/cpython/pull/107623#issue-1836614170
Please reload this pagehttps://github.com/python/cpython/pull/107623
Modernise code in Tools/clinic/ #104683https://github.com/python/cpython/issues/104683
Please reload this pagehttps://github.com/python/cpython/pull/107623
https://github.com/erlend-aasland
pythongh-104683https://github.com/python/cpython/issues/104683
: Argument Clinic: refactor format_docstring()https://github.com/python/cpython/pull/107623/commits/fd632eb911878a9c535ea847990338355eb375ca
fd632ebhttps://github.com/python/cpython/pull/107623/commits/fd632eb911878a9c535ea847990338355eb375ca
https://github.com/erlend-aasland
erlend-aaslandhttps://github.com/erlend-aasland
AlexWaygoodhttps://github.com/AlexWaygood
code ownerhttps://github.com/python/cpython/blob/2ba7c7f7b151ff56cf12bf3cab286981bb646c90/.github/CODEOWNERS#L179
August 4, 2023 11:55https://github.com/python/cpython/pull/107623#event-10008595605
https://github.com/erlend-aasland
erlend-aaslandhttps://github.com/erlend-aasland
skip news https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22skip%20news%22
Aug 4, 2023https://github.com/python/cpython/pull/107623#event-10008595660
https://github.com/bedevere-bot
bedevere-bothttps://github.com/bedevere-bot
awaiting core review https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22awaiting%20core%20review%22
Aug 4, 2023https://github.com/python/cpython/pull/107623#event-10008596269
https://github.com/bedevere-bot
bedevere-bothttps://github.com/bedevere-bot
Aug 4, 2023 https://github.com/python/cpython/pull/107623#ref-issue-1718127348
Modernise code in Tools/clinic/ #104683 https://github.com/python/cpython/issues/104683
https://github.com/AlexWaygood
AlexWaygoodhttps://github.com/AlexWaygood
Aug 4, 2023 https://github.com/python/cpython/pull/107623#pullrequestreview-1562730379
View reviewed changes https://github.com/python/cpython/pull/107623/files/fd632eb911878a9c535ea847990338355eb375ca
Tools/clinic/clinic.pyhttps://github.com/python/cpython/pull/107623/files/fd632eb911878a9c535ea847990338355eb375ca#diff-4c6b55ec7d80a3d60f100ce230eb879d9acbe2e558e01d318960e6197d7c47b3
Please reload this pagehttps://github.com/python/cpython/pull/107623
https://github.com/erlend-aasland
https://github.com/AlexWaygood
Use splitlines() iso. comprehensionhttps://github.com/python/cpython/pull/107623/commits/1d244dc64220ff1f69677827149197a918d5bc5b
1d244dchttps://github.com/python/cpython/pull/107623/commits/1d244dc64220ff1f69677827149197a918d5bc5b
https://github.com/AlexWaygood
AlexWaygoodhttps://github.com/AlexWaygood
Aug 4, 2023https://github.com/python/cpython/pull/107623#issuecomment-1665520726
Please reload this pagehttps://github.com/python/cpython/pull/107623
https://github.com/erlend-aasland
erlend-aaslandhttps://github.com/erlend-aasland
Aug 4, 2023https://github.com/python/cpython/pull/107623#issuecomment-1665525116
Please reload this pagehttps://github.com/python/cpython/pull/107623
https://github.com/erlend-aasland
Revert "Use splitlines() iso. comprehension"https://github.com/python/cpython/pull/107623/commits/9d3ed09e64b23885c5f774610384929fa15bf8a8
9d3ed09https://github.com/python/cpython/pull/107623/commits/9d3ed09e64b23885c5f774610384929fa15bf8a8
1d244dchttps://github.com/erlend-aasland/cpython/commit/1d244dc64220ff1f69677827149197a918d5bc5b
https://github.com/erlend-aasland
erlend-aaslandhttps://github.com/erlend-aasland
Aug 4, 2023https://github.com/python/cpython/pull/107623#issuecomment-1665527883
Please reload this pagehttps://github.com/python/cpython/pull/107623
https://github.com/AlexWaygood
AlexWaygoodhttps://github.com/AlexWaygood
Aug 4, 2023 https://github.com/python/cpython/pull/107623#pullrequestreview-1562773865
View reviewed changes https://github.com/python/cpython/pull/107623/files/9d3ed09e64b23885c5f774610384929fa15bf8a8
Tools/clinic/clinic.pyhttps://github.com/python/cpython/pull/107623/files/1d244dc64220ff1f69677827149197a918d5bc5b..9d3ed09e64b23885c5f774610384929fa15bf8a8#diff-4c6b55ec7d80a3d60f100ce230eb879d9acbe2e558e01d318960e6197d7c47b3
Please reload this pagehttps://github.com/python/cpython/pull/107623
https://github.com/erlend-aasland
https://github.com/AlexWaygood
Split, not splitlineshttps://github.com/python/cpython/pull/107623/commits/0902130a75a02d0deffd4643486d4304fd1e96e0
0902130https://github.com/python/cpython/pull/107623/commits/0902130a75a02d0deffd4643486d4304fd1e96e0
Params should render themselves #107629 https://github.com/python/cpython/pull/107629
Params should render themselves Argument-Clinic/cpython#16 https://github.com/Argument-Clinic/cpython/pull/16
https://github.com/erlend-aasland
erlend-aaslandhttps://github.com/erlend-aasland
AlexWaygoodhttps://github.com/AlexWaygood
August 4, 2023 14:28https://github.com/python/cpython/pull/107623#event-10010090348
https://github.com/erlend-aasland
erlend-aaslandhttps://github.com/erlend-aasland
Aug 4, 2023 https://github.com/python/cpython/pull/107623#ref-pullrequest-1834015260
Test: refactor format_docstring() Argument-Clinic/cpython#11 https://github.com/Argument-Clinic/cpython/pull/11
https://github.com/AlexWaygood
AlexWaygoodhttps://github.com/AlexWaygood
Aug 5, 2023 https://github.com/python/cpython/pull/107623#ref-pullrequest-1837897962
[alt] Refactor DSLParser.format_docstring() Argument-Clinic/cpython#18 https://github.com/Argument-Clinic/cpython/pull/18
https://github.com/erlend-aasland
erlend-aaslandhttps://github.com/erlend-aasland
Aug 7, 2023 https://github.com/python/cpython/pull/107623#ref-pullrequest-738437423
gh-86457: Fix signature for code.replace(). #23199 https://github.com/python/cpython/pull/23199
https://github.com/AA-Turner
AA-Turnerhttps://github.com/AA-Turner
Aug 8, 2023 https://github.com/python/cpython/pull/107623#pullrequestreview-1566548478
View reviewed changes https://github.com/python/cpython/pull/107623/files/0902130a75a02d0deffd4643486d4304fd1e96e0
Tools/clinic/clinic.pyhttps://github.com/python/cpython/pull/107623/files/0902130a75a02d0deffd4643486d4304fd1e96e0#diff-4c6b55ec7d80a3d60f100ce230eb879d9acbe2e558e01d318960e6197d7c47b3
Please reload this pagehttps://github.com/python/cpython/pull/107623
erlend-aaslandhttps://github.com/erlend-aasland
August 8, 2023 08:52https://github.com/python/cpython/pull/107623#commits-pushed-e3ff673
https://github.com/erlend-aasland
https://github.com/AA-Turner
Stylehttps://github.com/python/cpython/pull/107623/commits/e3ff673ac179a0b0d0b5761c1cdbf10224529942
e3ff673https://github.com/python/cpython/pull/107623/commits/e3ff673ac179a0b0d0b5761c1cdbf10224529942
https://github.com/erlend-aasland
Merge branch 'main' into clinic/refactor-format-docstringhttps://github.com/python/cpython/pull/107623/commits/e041288890d2eb02503016a458de8f30b4a75dee
e041288https://github.com/python/cpython/pull/107623/commits/e041288890d2eb02503016a458de8f30b4a75dee
https://github.com/erlend-aasland
Fix mypyhttps://github.com/python/cpython/pull/107623/commits/34729c2a7821700e83ad49d8b79819a4e454e06d
34729c2https://github.com/python/cpython/pull/107623/commits/34729c2a7821700e83ad49d8b79819a4e454e06d
https://github.com/AlexWaygood
AlexWaygoodhttps://github.com/AlexWaygood
Aug 8, 2023 https://github.com/python/cpython/pull/107623#pullrequestreview-1567181197
View reviewed changes https://github.com/python/cpython/pull/107623/files/34729c2a7821700e83ad49d8b79819a4e454e06d
https://github.com/bedevere-bot
bedevere-bothttps://github.com/bedevere-bot
awaiting merge https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22awaiting%20merge%22
awaiting core review https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22awaiting%20core%20review%22
Aug 8, 2023https://github.com/python/cpython/pull/107623#event-10034928088
https://github.com/AA-Turner
AA-Turnerhttps://github.com/AA-Turner
Aug 8, 2023 https://github.com/python/cpython/pull/107623#pullrequestreview-1567888061
View reviewed changes https://github.com/python/cpython/pull/107623/files/34729c2a7821700e83ad49d8b79819a4e454e06d
Tools/clinic/clinic.pyhttps://github.com/python/cpython/pull/107623/files/34729c2a7821700e83ad49d8b79819a4e454e06d#diff-4c6b55ec7d80a3d60f100ce230eb879d9acbe2e558e01d318960e6197d7c47b3
Please reload this pagehttps://github.com/python/cpython/pull/107623
erlend-aaslandhttps://github.com/erlend-aasland
August 8, 2023 22:40https://github.com/python/cpython/pull/107623#commits-pushed-03a9f16
https://github.com/erlend-aasland
Pull in mainhttps://github.com/python/cpython/pull/107623/commits/03a9f162f7f533fe8e575972645770f7d3b8fcce
03a9f16https://github.com/python/cpython/pull/107623/commits/03a9f162f7f533fe8e575972645770f7d3b8fcce
https://github.com/erlend-aasland
Remove one more unneeded rstriphttps://github.com/python/cpython/pull/107623/commits/4b0c7ec8b9c639b61f5e982a8911cfadc9093556
4b0c7echttps://github.com/python/cpython/pull/107623/commits/4b0c7ec8b9c639b61f5e982a8911cfadc9093556
https://github.com/erlend-aasland
erlend-aaslandhttps://github.com/erlend-aasland
August 8, 2023 20:43https://github.com/python/cpython/pull/107623#event-10039954231
https://github.com/erlend-aasland
erlend-aaslandhttps://github.com/erlend-aasland
Aug 8, 2023https://github.com/python/cpython/pull/107623#issuecomment-1670281704
Please reload this pagehttps://github.com/python/cpython/pull/107623
https://github.com/erlend-aasland
erlend-aaslandhttps://github.com/erlend-aasland
7350738https://github.com/python/cpython/commit/73507382ac184a72b59ebb0c2f85e8b1d2dfa58e
Aug 8, 2023https://github.com/python/cpython/pull/107623#event-10040171880
https://github.com/bedevere-bot
bedevere-bothttps://github.com/bedevere-bot
awaiting merge https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22awaiting%20merge%22
Aug 8, 2023https://github.com/python/cpython/pull/107623#event-10040172320
https://github.com/erlend-aasland
erlend-aaslandhttps://github.com/erlend-aasland
August 8, 2023 21:18https://github.com/python/cpython/pull/107623#event-10040207927
https://github.com/erlend-aasland
erlend-aaslandhttps://github.com/erlend-aasland
Aug 8, 2023https://github.com/python/cpython/pull/107623#issuecomment-1670322117
Please reload this pagehttps://github.com/python/cpython/pull/107623
Sign up for freehttps://github.com/join?source=comment-repo
Sign in to commenthttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F107623
https://github.com/AlexWaygood
AlexWaygood https://github.com/AlexWaygood
https://github.com/python/cpython/pull/107623/files/0902130a75a02d0deffd4643486d4304fd1e96e0
https://github.com/AA-Turner
AA-Turner https://github.com/AA-Turner
https://github.com/python/cpython/pull/107623/files/34729c2a7821700e83ad49d8b79819a4e454e06d
skip news https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22skip%20news%22
Please reload this pagehttps://github.com/python/cpython/pull/107623
https://github.com/erlend-aasland
https://github.com/AlexWaygood
https://github.com/AA-Turner
https://github.com/bedevere-bot
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.