Skip to content

Fix a stray newline in the cell type docstring - #157240

Merged
StanFromIreland merged 1 commit into
python:mainfrom
DanielEScherzer:cell-class-docs
Sep 10, 2026
Merged

Fix a stray newline in the cell type docstring#157240
StanFromIreland merged 1 commit into
python:mainfrom
DanielEScherzer:cell-class-docs

Conversation

@DanielEScherzer

Copy link
Copy Markdown
Contributor

The contents documentation was split over multiple lines, but an extra newline meant that there was an (indented) line with just the word "and" followed by an unindented line with "further attempts...". Remove that newline to avoid having just a single word in the documentation and to fix the indentation.

The `contents` documentation was split over multiple lines, but an extra
newline meant that there was an (indented) line with just the word "and"
followed by an unindented line with "further attempts...". Remove that newline
to avoid having just a single word in the documentation and to fix the
indentation.
@python-cla-bot

python-cla-bot Bot commented Sep 9, 2026

Copy link
Copy Markdown

All commit authors signed the Contributor License Agreement.

CLA signed

@bedevere-app

bedevere-app Bot commented Sep 9, 2026

Copy link
Copy Markdown

Most changes to Python require a NEWS entry. Add one using the blurb_it web app or the blurb command-line tool.

If this change has little impact on Python users, wait for a maintainer to apply the skip news label instead.

@DanielEScherzer

DanielEScherzer commented Sep 9, 2026

Copy link
Copy Markdown
Contributor Author

Not sure if this needs a test, but tested locally with

def outer_func(x):
    return lambda: print (x)
holds_cell = outer_func(5)
print(holds_cell.__closure__[0].__class__.__doc__)

Seemed trivial enough not to need a GitHub issue or a NEWS entry

@StanFromIreland StanFromIreland changed the title Cell: remove unneeded newline in the middle of class documentation Fix a stray newline in the cell type docstring Sep 10, 2026
@StanFromIreland
StanFromIreland merged commit 34439b8 into python:main Sep 10, 2026
61 checks passed
@StanFromIreland

Copy link
Copy Markdown
Member

Merged, thank you!

@StanFromIreland StanFromIreland added needs backport to 3.13 bugs and security fixes needs backport to 3.14 bugs and security fixes needs backport to 3.15 pre-release feature fixes, bugs and security fixes labels Sep 10, 2026
@miss-islington-app

Copy link
Copy Markdown

Thanks @DanielEScherzer for the PR, and @StanFromIreland for merging it 🌮🎉.. I'm working now to backport this PR to: 3.14.
🐍🍒⛏🤖

@miss-islington-app

Copy link
Copy Markdown

Thanks @DanielEScherzer for the PR, and @StanFromIreland for merging it 🌮🎉.. I'm working now to backport this PR to: 3.13.
🐍🍒⛏🤖

@miss-islington-app

Copy link
Copy Markdown

Thanks @DanielEScherzer for the PR, and @StanFromIreland for merging it 🌮🎉.. I'm working now to backport this PR to: 3.15.
🐍🍒⛏🤖

@bedevere-app

bedevere-app Bot commented Sep 10, 2026

Copy link
Copy Markdown

GH-157276 is a backport of this pull request to the 3.14 branch.

@bedevere-app bedevere-app Bot removed the needs backport to 3.14 bugs and security fixes label Sep 10, 2026
@bedevere-app

bedevere-app Bot commented Sep 10, 2026

Copy link
Copy Markdown

GH-157277 is a backport of this pull request to the 3.13 branch.

@bedevere-app bedevere-app Bot removed the needs backport to 3.13 bugs and security fixes label Sep 10, 2026
@bedevere-app

bedevere-app Bot commented Sep 10, 2026

Copy link
Copy Markdown

GH-157278 is a backport of this pull request to the 3.15 branch.

@bedevere-app bedevere-app Bot removed the needs backport to 3.15 pre-release feature fixes, bugs and security fixes label Sep 10, 2026
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