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 inDoc/library/locale.rst#114425

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:mainfromsobolevn:issue-101100-locale
Jan 23, 2024

Conversation

sobolevn
Copy link
Member

@sobolevnsobolevn commentedJan 22, 2024
edited by github-actionsbot
Loading

Before:

/Users/sobolev/Desktop/cpython2/Doc/library/locale.rst:21: WARNING: py:mod reference target not found: _locale/Users/sobolev/Desktop/cpython2/Doc/library/locale.rst:201: WARNING: py:const reference target not found: DAY_1/Users/sobolev/Desktop/cpython2/Doc/library/locale.rst:237: WARNING: c:func reference target not found: regex/Users/sobolev/Desktop/cpython2/Doc/library/locale.rst:582: WARNING: py:mod reference target not found: _locale/Users/sobolev/Desktop/cpython2/Doc/library/locale.rst:582: WARNING: py:mod reference target not found: _locale/Users/sobolev/Desktop/cpython2/Doc/library/locale.rst:608: WARNING: c:func reference target not found: gettext/Users/sobolev/Desktop/cpython2/Doc/library/locale.rst:608: WARNING: c:func reference target not found: dcgettext

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

@sobolevnsobolevn requested a review fromhugovkJanuary 22, 2024 11:26
@bedevere-appbedevere-appbot added awaiting review docsDocumentation in the Doc dir skip news labelsJan 22, 2024
@sobolevnsobolevn added needs backport to 3.11only security fixes needs backport to 3.12only security fixes docsDocumentation in the Doc dir and removed docsDocumentation in the Doc dir labelsJan 22, 2024
Comment on lines 629 to 634
.. function:: gettext(msg, /)
.. function:: dgettext(domain, msg, /)
.. function:: dcgettext(domain, msg, category, /)
.. function:: textdomain(domain, /)
.. function:: bindtextdomain(domain, dir, /)
.. function:: bind_textdomain_codeset(domain, codeset, /)
Copy link
Member

Choose a reason for hiding this comment

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

I'm not sure if these/ args do much to clarify here, shall we revert this bit? I don't think it fixed any warnings?

Copy link
MemberAuthor

@sobolevnsobolevnJan 22, 2024
edited
Loading

Choose a reason for hiding this comment

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

Actual functions inlocale do not accept keyword args, only pos-only ones. I think that the docs should reflect that. Why do you think that/ is not helpful here?

Copy link
Member

Choose a reason for hiding this comment

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

We have many function signatures in docs that do not reflect the exact technical reality of the code, but instead simplify them, for readability, brevity, and simplicity.

sobolevn reacted with thumbs up emoji
@hugovkhugovk merged commit7d21cae intopython:mainJan 23, 2024
@miss-islington-app
Copy link

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

miss-islington pushed a commit to miss-islington/cpython that referenced this pull requestJan 23, 2024
…honGH-114425)*pythongh-101100: Fix sphinx warnings in `Doc/library/locale.rst`* Remove `/` from signatures(cherry picked from commit7d21cae)Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
miss-islington pushed a commit to miss-islington/cpython that referenced this pull requestJan 23, 2024
…honGH-114425)*pythongh-101100: Fix sphinx warnings in `Doc/library/locale.rst`* Remove `/` from signatures(cherry picked from commit7d21cae)Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
@bedevere-app
Copy link

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

@bedevere-appbedevere-appbot removed the needs backport to 3.12only security fixes labelJan 23, 2024
@bedevere-app
Copy link

GH-114478 is a backport of this pull request to the3.11 branch.

@bedevere-appbedevere-appbot removed the needs backport to 3.11only security fixes labelJan 23, 2024
@hugovk
Copy link
Member

Thank you! 🧹📚

sobolevn reacted with thumbs up emoji

hugovk pushed a commit that referenced this pull requestJan 23, 2024
…-114425) (#114477)gh-101100: Fix sphinx warnings in `Doc/library/locale.rst` (GH-114425)*gh-101100: Fix sphinx warnings in `Doc/library/locale.rst`* Remove `/` from signatures(cherry picked from commit7d21cae)Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
hugovk pushed a commit that referenced this pull requestJan 23, 2024
…-114425) (#114478)gh-101100: Fix sphinx warnings in `Doc/library/locale.rst` (GH-114425)*gh-101100: Fix sphinx warnings in `Doc/library/locale.rst`* Remove `/` from signatures(cherry picked from commit7d21cae)Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
aisk pushed a commit to aisk/cpython that referenced this pull requestFeb 11, 2024
…hon#114425)*pythongh-101100: Fix sphinx warnings in `Doc/library/locale.rst`* Remove `/` from signatures
Glyphack pushed a commit to Glyphack/cpython that referenced this pull requestSep 2, 2024
…hon#114425)*pythongh-101100: Fix sphinx warnings in `Doc/library/locale.rst`* Remove `/` from signatures
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@hugovkhugovkhugovk left review comments

Assignees
No one assigned
Labels
docsDocumentation in the Doc dirskip news
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

2 participants
@sobolevn@hugovk

[8]ページ先頭

©2009-2025 Movatter.jp