FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

GH-137623: Begin enforcing docstring length in Argument Clinic by AA-Turner · Pull Request #137624 · python/cpython · GitHub

/ cpython Public

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

Merged
AA-Turner merged 9 commits into
python:mainfrom
AA-Turner:clinic/overlong-docstrings
Aug 12, 2025
Merged

GH-137623: Begin enforcing docstring length in Argument Clinic#137624
AA-Turner merged 9 commits into
python:mainfrom
AA-Turner:clinic/overlong-docstrings

Conversation

AA-Turner commented Aug 11, 2025
edited by bedevere-app Bot
Loading

Copy link
Copy Markdown
Member

serhiy-storchaka left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

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?

Comment thread Tools/clinic/libclinic/errors.py Outdated
Comment thread Tools/clinic/libclinic/dsl_parser.py Outdated
Comment thread Tools/clinic/libclinic/errors.py Outdated
AA-Turner enabled auto-merge (squash) August 12, 2025 19:05
Comment thread Tools/clinic/libclinic/function.py Outdated
AA-Turner disabled auto-merge August 12, 2025 19:38
AA-Turner enabled auto-merge (squash) August 12, 2025 19:52

serhiy-storchaka left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

LGTM. 👍

AA-Turner merged commit 6baf552 into python:main Aug 12, 2025
54 checks passed
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
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


Back | FazBrowse Home | New Git URL