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 in library/email.compat32-message.rst#136323

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

Conversation

LamentXU123
Copy link
Contributor

@LamentXU123LamentXU123 commentedJul 5, 2025
edited
Loading

before:

C:\Users\admin\Downloads\cpython-main\Doc\library\email.compat32-message.rst:226: WARNING: py:class reference target not found: email.emailmessage.EmailMessage [ref.class]C:\Users\admin\Downloads\cpython-main\Doc\library\email.compat32-message.rst:238: WARNING: py:class reference target not found: email.emailmessage.EmailMessage [ref.class]C:\Users\admin\Downloads\cpython-main\Doc\library\email.compat32-message.rst:267: WARNING: py:class reference target not found: email.emailmessage.EmailMessage [ref.class]C:\Users\admin\Downloads\cpython-main\Doc\library\email.compat32-message.rst:267: WARNING: py:meth reference target not found: email.emailmessage.EmailMessage.set_content [ref.meth]C:\Users\admin\Downloads\cpython-main\Doc\library\email.compat32-message.rst:278: WARNING: py:class reference target not found: email.emailmessage.EmailMessage [ref.class]C:\Users\admin\Downloads\cpython-main\Doc\library\email.compat32-message.rst:488: WARNING: py:class reference target not found: email.emailmessage.EmailMessage [ref.class]C:\Users\admin\Downloads\cpython-main\Doc\library\email.compat32-message.rst:526: WARNING: py:class reference target not found: email.emailmessage.EmailMessage [ref.class]C:\Users\admin\Downloads\cpython-main\Doc\library\email.compat32-message.rst:581: WARNING: py:class reference target not found: email.emailmessage.EmailMessage [ref.class]

The warnings are raised in a same reason. An example:

      This is a legacy method.  On the      :class:`~email.emailmessage.EmailMessage` class its functionality is      replaced by :meth:`~email.message.EmailMessage.get_content` and      :meth:`~email.message.EmailMessage.iter_parts`.

image

The referrence toEmailMessage is invalid, because the moudle is actuallyemail.message.EmailMessage notemail.emailmessage.EmailMessage . This PR fix them all.

After:

image

and the example:

image

In this example, you can check theset_content method, which is a method ofemail.message.EmailMessage notemail.emailmessage.EmailMessage

The preview doc of this moudle:https://cpython-previews--136323.org.readthedocs.build/en/136323/library/email.compat32-message.html?readthedocs-diff=true&readthedocs-diff-chunk=1


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

mattwang44 and LamentXU123 reacted with thumbs up emoji
@hugovk
Copy link
Member

Thanks!

LamentXU123 reacted with heart emoji

@hugovkhugovk merged commit0b62523 intopython:mainJul 7, 2025
36 checks passed
@github-project-automationgithub-project-automationbot moved this fromTodo toDone inDocs PRsJul 7, 2025
@miss-islington-app
Copy link

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

miss-islington pushed a commit to miss-islington/cpython that referenced this pull requestJul 7, 2025
…e.rst (pythonGH-136323)(cherry picked from commit0b62523)Co-authored-by: Weilin Du <108666168+LamentXU123@users.noreply.github.com>
@bedevere-app
Copy link

GH-136389 is a backport of this pull request to the3.14 branch.

miss-islington pushed a commit to miss-islington/cpython that referenced this pull requestJul 7, 2025
…e.rst (pythonGH-136323)(cherry picked from commit0b62523)Co-authored-by: Weilin Du <108666168+LamentXU123@users.noreply.github.com>
@bedevere-appbedevere-appbot removed the needs backport to 3.14bugs and security fixes labelJul 7, 2025
@bedevere-app
Copy link

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

@bedevere-appbedevere-appbot removed the needs backport to 3.13bugs and security fixes labelJul 7, 2025
hugovk pushed a commit that referenced this pull requestJul 7, 2025
…ge.rst (GH-136323) (#136389)Co-authored-by: Weilin Du <108666168+LamentXU123@users.noreply.github.com>
hugovk pushed a commit that referenced this pull requestJul 7, 2025
…ge.rst (GH-136323) (#136390)Co-authored-by: Weilin Du <108666168+LamentXU123@users.noreply.github.com>
AndPuQing pushed a commit to AndPuQing/cpython that referenced this pull requestJul 11, 2025
Pranjal095 pushed a commit to Pranjal095/cpython that referenced this pull requestJul 12, 2025
picnixz pushed a commit to picnixz/cpython that referenced this pull requestJul 13, 2025
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

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

@hugovkhugovkAwaiting requested review from hugovkhugovk 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.

2 participants
@LamentXU123@hugovk

[8]ページ先頭

©2009-2025 Movatter.jp