Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

gh-101100: Fix Sphinx warnings about list methods#127054

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
hugovk merged 2 commits intopython:mainfromkoyuki7w:doc-fix-1
Dec 2, 2024

Conversation

koyuki7w
Copy link
Contributor

@koyuki7wkoyuki7w commentedNov 20, 2024
edited by github-actionsbot
Loading

The list methods have no entries in the document, so removed these references.

Fixed 7 sphinx warnings:

library/collections.rst:784: WARNING: py:meth reference target not found: list.append [ref.meth]library/collections.rst:784: WARNING: py:meth reference target not found: list.append [ref.meth]tutorial/datastructures.rst:143: WARNING: py:meth reference target not found: list.append [ref.meth]tutorial/datastructures.rst:143: WARNING: py:meth reference target not found: list.pop [ref.meth]tutorial/datastructures.rst:342: WARNING: py:meth reference target not found: list.pop [ref.meth]tutorial/datastructures.rst:495: WARNING: py:meth reference target not found: list.append [ref.meth]tutorial/datastructures.rst:495: WARNING: py:meth reference target not found: list.extend [ref.meth]

📚 Documentation preview 📚:https://cpython-previews--127054.org.readthedocs.build/

Copy link
Member

@vstinnervstinner left a comment

Choose a reason for hiding this comment

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

LGTM.

List methods are not documented in a way that we can refer to them:https://docs.python.org/dev/library/stdtypes.html#mutable-sequence-types

koyuki7w reacted with thumbs up emoji
@rhettingerrhettinger removed their request for reviewNovember 21, 2024 17:36
@hugovkhugovk added needs backport to 3.12only security fixes needs backport to 3.13bugs and security fixes labelsNov 24, 2024
@hugovkhugovk merged commit3e81225 intopython:mainDec 2, 2024
33 checks passed
@miss-islington-app
Copy link

Thanks@koyuki7w for the PR, and@hugovk for merging it 🌮🎉.. I'm working now to backport this PR to: 3.12, 3.13.
🐍🍒⛏🤖 I'm not a witch! I'm not a witch!

miss-islington pushed a commit to miss-islington/cpython that referenced this pull requestDec 2, 2024
)(cherry picked from commit3e81225)Co-authored-by: Yuki Kobayashi <drsuaimqjgar@gmail.com>
miss-islington pushed a commit to miss-islington/cpython that referenced this pull requestDec 2, 2024
)(cherry picked from commit3e81225)Co-authored-by: Yuki Kobayashi <drsuaimqjgar@gmail.com>
@bedevere-app
Copy link

GH-127511 is a backport of this pull request to the3.13 branch.

@bedevere-appbedevere-appbot removed the needs backport to 3.13bugs and security fixes labelDec 2, 2024
@bedevere-app
Copy link

GH-127512 is a backport of this pull request to the3.12 branch.

@bedevere-appbedevere-appbot removed the needs backport to 3.12only security fixes labelDec 2, 2024
@koyuki7wkoyuki7w deleted the doc-fix-1 branchDecember 2, 2024 13:52
hugovk pushed a commit that referenced this pull requestDec 2, 2024
hugovk pushed a commit that referenced this pull requestDec 2, 2024
Comment on lines +145 to +146
item to the top of the stack, use :meth:`!~list.append`. To retrieve an item from the
top of the stack, use :meth:`!~list.pop` without an explicit index. For example::
Copy link
Contributor

Choose a reason for hiding this comment

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

This change apparently broke the rendering, we don't want to display the tilde character. The exclamation mark should probably replace the tilde?

Zrzut ekranu 2024-12-6 o 11 52 28

Copy link
ContributorAuthor

Choose a reason for hiding this comment

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

@m-aciek Thank you for pointing this out. I'll fix it soon.

Copy link
Member

Choose a reason for hiding this comment

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

Thanks, it'd be good to detect this with the Sphinx Lint too. I reported it at:

sphinx-contrib/sphinx-lint#126

koyuki7w added a commit to koyuki7w/fork-python-cpython that referenced this pull requestDec 6, 2024
The references starting with `!~` are not rendered correctly(as pointed out inpython#127054 (comment))
miss-islington pushed a commit to miss-islington/cpython that referenced this pull requestDec 6, 2024
… (pythonGH-127684)(cherry picked from commit77a61c0)Co-authored-by: Yuki Kobayashi <drsuaimqjgar@gmail.com>
miss-islington pushed a commit to miss-islington/cpython that referenced this pull requestDec 6, 2024
… (pythonGH-127684)(cherry picked from commit77a61c0)Co-authored-by: Yuki Kobayashi <drsuaimqjgar@gmail.com>
hugovk pushed a commit that referenced this pull requestDec 6, 2024
…H-127684) (#127692)gh-101100: amend references starting with `!~` ingh-127054 (GH-127684)(cherry picked from commit77a61c0)Co-authored-by: Yuki Kobayashi <drsuaimqjgar@gmail.com>
hugovk pushed a commit that referenced this pull requestDec 6, 2024
…H-127684) (#127693)gh-101100: amend references starting with `!~` ingh-127054 (GH-127684)(cherry picked from commit77a61c0)Co-authored-by: Yuki Kobayashi <drsuaimqjgar@gmail.com>
srinivasreddy pushed a commit to srinivasreddy/cpython that referenced this pull requestJan 8, 2025
srinivasreddy pushed a commit to srinivasreddy/cpython that referenced this pull requestJan 8, 2025
ebonnal pushed a commit to ebonnal/cpython that referenced this pull requestJan 12, 2025
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@hugovkhugovkhugovk left review comments

@m-aciekm-aciekm-aciek left review comments

@vstinnervstinnervstinner approved these changes

@AA-TurnerAA-TurnerAwaiting requested review from AA-TurnerAA-Turner is a code owner

Assignees
No one assigned
Labels
docsDocumentation in the Doc dirskip news
Projects
Status: Done
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

4 participants
@koyuki7w@vstinner@hugovk@m-aciek

[8]ページ先頭

©2009-2025 Movatter.jp