Skip to content

GH-137623: Begin enforcing docstring length in Argument Clinic #137624

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

Merged
merged 9 commits into from
Aug 12, 2025

Conversation

AA-Turner
Copy link
Member

@AA-Turner AA-Turner commented Aug 11, 2025

Copy link
Member

@serhiy-storchaka serhiy-storchaka left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think that we should check the length for all lines, not only the first one. And the limit should be 72 for functions, __new__ and __init__, and 68 for other methods.

Also, should this be an error or warning?

@AA-Turner AA-Turner enabled auto-merge (squash) August 12, 2025 19:05
@AA-Turner AA-Turner disabled auto-merge August 12, 2025 19:38
@AA-Turner AA-Turner enabled auto-merge (squash) August 12, 2025 19:52
Copy link
Member

@serhiy-storchaka serhiy-storchaka left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. 👍

@AA-Turner AA-Turner merged commit 6baf552 into python:main Aug 12, 2025
54 checks passed
@AA-Turner AA-Turner deleted the clinic/overlong-docstrings branch August 12, 2025 20:21
skirpichev added a commit to skirpichev/cpython that referenced this pull request Aug 13, 2025
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.

2 participants