Skip to content
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 our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

gh-101100: Fix sphinx warnings in uuid.rst #108805

Merged
merged 2 commits into from
Sep 2, 2023

Conversation

sobolevn
Copy link
Member

@sobolevn sobolevn commented Sep 2, 2023

Warnings before:

/Users/sobolev/Desktop/cpython/Doc/library/uuid.rst:22: WARNING: py:attr reference target not found: is_safe
/Users/sobolev/Desktop/cpython/Doc/library/uuid.rst:102: WARNING: py:attr reference target not found: time_low
/Users/sobolev/Desktop/cpython/Doc/library/uuid.rst:104: WARNING: py:attr reference target not found: time_mid
/Users/sobolev/Desktop/cpython/Doc/library/uuid.rst:106: WARNING: py:attr reference target not found: time_hi_version
/Users/sobolev/Desktop/cpython/Doc/library/uuid.rst:108: WARNING: py:attr reference target not found: clock_seq_hi_variant
/Users/sobolev/Desktop/cpython/Doc/library/uuid.rst:110: WARNING: py:attr reference target not found: clock_seq_low
/Users/sobolev/Desktop/cpython/Doc/library/uuid.rst:112: WARNING: py:attr reference target not found: node
/Users/sobolev/Desktop/cpython/Doc/library/uuid.rst:116: WARNING: py:attr reference target not found: clock_seq
/Users/sobolev/Desktop/cpython/Doc/library/uuid.rst:235: WARNING: py:attr reference target not found: variant

Turns out all attributes that are defined in .fields are not documented intentionally (as far as I understand from the docs.


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

Doc/library/uuid.rst Outdated Show resolved Hide resolved
@sobolevn
Copy link
Member Author

sobolevn commented Sep 2, 2023

Looks great:
Снимок экрана 2023-09-02 в 12 22 02

Copy link
Member

@hugovk hugovk left a comment

Choose a reason for hiding this comment

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

Thanks! And easier to later edit a list-table than mess with the "ASCII art" one :)

@hugovk hugovk added needs backport to 3.11 only security fixes needs backport to 3.12 bug and security fixes labels Sep 2, 2023
@hugovk hugovk enabled auto-merge (squash) September 2, 2023 09:30
@sobolevn
Copy link
Member Author

sobolevn commented Sep 2, 2023

mess
"ASCII art"

😢

@hugovk hugovk merged commit 21da498 into python:main Sep 2, 2023
@miss-islington
Copy link
Contributor

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

@bedevere-bot
Copy link

There's a new commit after the PR has been approved.

@hugovk: please review the changes made to this pull request.

@bedevere-bot bedevere-bot requested a review from hugovk September 2, 2023 09:32
miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Sep 2, 2023
* pythongh-101100: Fix sphinx warnings in `uuid.rst`

* Use anchors
(cherry picked from commit 21da498)

Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
@bedevere-bot
Copy link

GH-108807 is a backport of this pull request to the 3.12 branch.

@bedevere-bot bedevere-bot removed the needs backport to 3.12 bug and security fixes label Sep 2, 2023
@bedevere-bot
Copy link

GH-108808 is a backport of this pull request to the 3.11 branch.

@bedevere-bot bedevere-bot removed the needs backport to 3.11 only security fixes label Sep 2, 2023
miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Sep 2, 2023
* pythongh-101100: Fix sphinx warnings in `uuid.rst`

* Use anchors
(cherry picked from commit 21da498)

Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
- The last 48 bits of the UUID.

* - .. attribute:: UUID.time
- The the 60-bit timestamp.
Copy link
Member

Choose a reason for hiding this comment

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

Sorry, I missed the "the the" typo here. I've fixed it in the backports, please could you fix main? (I'm on a phone, otherwise I could do it myself.) Thanks!

@hugovk
Copy link
Member

hugovk commented Sep 2, 2023

mess
"ASCII art"

😢

I mean it can be time-consuming to adjust the layout when changing text that then requires changing the number of hyphens, equals signs, whitespace and so on.

@sobolevn sobolevn mentioned this pull request Sep 2, 2023
- Meaning

* - .. attribute:: UUID.time_low
- The next 32 bits of the UUID.
Copy link
Member

Choose a reason for hiding this comment

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

There's another mistake here:

Suggested change
- The next 32 bits of the UUID.
- The first 32 bits of the UUID.

@sobolevn, could you fix it?

Copy link
Member

Choose a reason for hiding this comment

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

For future reference: this is being addressed in #108810

@bedevere-bot
Copy link

GH-108808 is a backport of this pull request to the 3.11 branch.

AlexWaygood added a commit that referenced this pull request Sep 2, 2023
)

(cherry picked from commit 21da498)

Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
@bedevere-bot
Copy link

GH-108807 is a backport of this pull request to the 3.12 branch.

Yhg1s pushed a commit that referenced this pull request Sep 2, 2023
)

* gh-101100: Fix sphinx warnings in `uuid.rst` (GH-108805)

* gh-101100: Fix sphinx warnings in `uuid.rst`

* Use anchors
(cherry picked from commit 21da498)

Co-authored-by: Nikita Sobolev <mail@sobolevn.me>

* Fix typo

* another typo

---------

Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
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.

5 participants