Fix a stray newline in the cell type docstring - #157240
Conversation
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.
|
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 |
|
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 |
cell type docstring
|
Merged, thank you! |
|
Thanks @DanielEScherzer for the PR, and @StanFromIreland for merging it 🌮🎉.. I'm working now to backport this PR to: 3.14. |
|
Thanks @DanielEScherzer for the PR, and @StanFromIreland for merging it 🌮🎉.. I'm working now to backport this PR to: 3.13. |
|
Thanks @DanielEScherzer for the PR, and @StanFromIreland for merging it 🌮🎉.. I'm working now to backport this PR to: 3.15. |
|
GH-157276 is a backport of this pull request to the 3.14 branch. |
|
GH-157277 is a backport of this pull request to the 3.13 branch. |
|
GH-157278 is a backport of this pull request to the 3.15 branch. |
The
contentsdocumentation 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.