Visitar URL original
Remove bogus annotations from the descriptor howto guide by rhettinger · Pull Request #112349 · python/cpython · GitHub
The Wayback Machine - https://web.archive.org/web/20250609051925/https://github.com/python/cpython/pull/112349
Skip to content

Remove bogus annotations from the descriptor howto guide #112349

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

Merged
merged 1 commit into from
Nov 23, 2023

Conversation

rhettinger
Copy link
Contributor

@rhettinger rhettinger commented Nov 23, 2023 •

These are distracting and add no value. We don't even use them in the main docs. Knowing type annotations is not a prerequisite for reading this guide. These lines aren't def statements so the the -> notation makes no sense and is out of context. Also -> value isn't even a valid type. It is just noise.


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

@rhettinger rhettinger added the needs backport to 3.11 only security fixes label Nov 23, 2023
@rhettinger rhettinger merged commit d9fc152 into python:main Nov 23, 2023
@miss-islington-app
Copy link

Thanks @rhettinger for the PR 🌮🎉.. I'm working now to backport this PR to: 3.11.
🐍🍒⛏🤖

miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Nov 23, 2023
…2349)

(cherry picked from commit d9fc152)

Co-authored-by: Raymond Hettinger <rhettinger@users.noreply.github.com>
@bedevere-app
Copy link

bedevere-app bot commented Nov 23, 2023

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

@miss-islington-app
Copy link

Thanks @rhettinger for the PR 🌮🎉.. I'm working now to backport this PR to: 3.12.
🐍🍒⛏🤖

@bedevere-app
Copy link

bedevere-app bot commented Nov 23, 2023

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

@bedevere-app bedevere-app bot removed the needs backport to 3.12 only security fixes label Nov 23, 2023
miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Nov 23, 2023
…2349)

(cherry picked from commit d9fc152)

Co-authored-by: Raymond Hettinger <rhettinger@users.noreply.github.com>
AlexWaygood pushed a commit that referenced this pull request Nov 23, 2023
…12349) (#112352)

Remove bogus annotations from the descriptor howto guide (GH-112349)
(cherry picked from commit d9fc152)

Co-authored-by: Raymond Hettinger <rhettinger@users.noreply.github.com>
aisk pushed a commit to aisk/cpython that referenced this pull request Feb 11, 2024
Glyphack pushed a commit to Glyphack/cpython that referenced this pull request Sep 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
docs Documentation in the Doc dir skip issue skip news
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants