gh-154559: Link the annotations future statement to the language reference#154608
Open
gchaber wants to merge 1 commit into
Open
gh-154559: Link the annotations future statement to the language reference#154608gchaber wants to merge 1 commit into
gchaber wants to merge 1 commit into
Conversation
Documentation build overview
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #154559
The
annotationsentry in the future-statements table in the__future__documentation lists PEP 563 and PEP 649, but does not link to the language reference section that documents how annotations actually behave in current Python (https://docs.python.org/3/reference/compound_stmts.html#annotations).This adds a
:ref:annotations`` cross-reference to that table row, as suggested by @picnixz in the issue discussion.Documentation-only change, so no NEWS entry is included (the
skip newslabel applies). Verified with a full docs build (make -C Doc html, which runs Sphinx with--fail-on-warning): build completes with zero warnings and the rendered page links toreference/compound_stmts.html#annotations.make patchcheckis clean.