-
-
Notifications
You must be signed in to change notification settings - Fork 32k
pathlib.PurePath properties annotated with .. data directive #86610
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
Comments
Currently, it seems that the pathlib module uses `.. data::` to annotate the properties of the PurePath type (e.g. .parts, .drive, .root, etc). See: https://github.com/python/cpython/blob/ff420f0e08a2443339da0df7ace95e14177bac53/Doc/library/pathlib.rst According to the documentation (https://devguide.python.org/documenting/#information-units),
I believe that we should switch these over to use the `.. attribute:` directive instead. From what I can tell, you can still link to these attributes using the `:attr:` role. I haven't checked if you can link to `:attribute:`s using the `:data:` role, though. If not, it might break some links to change these to `:attribute:`. |
…ythonGH-101114) (cherry picked from commit 01093b8) Co-authored-by: Barney Gale <barney.gale@gmail.com>
…ythonGH-101114) (cherry picked from commit 01093b8) Co-authored-by: Barney Gale <barney.gale@gmail.com>
…GH-101114) (#101205) (cherry picked from commit 01093b8) Co-authored-by: Barney Gale <barney.gale@gmail.com>
…GH-101114) (#101206) (cherry picked from commit 01093b8) Co-authored-by: Barney Gale <barney.gale@gmail.com>
Thanks for fixing! |
Uh oh!
There was an error while loading. Please reload this page.
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
bugs.python.org fields:
Linked PRs
The text was updated successfully, but these errors were encountered: