Skip to content

gh-145870: Fix Format.SOURCE reference in get_annotations docstring#145889

Open
wavebyrd wants to merge 1 commit intopython:mainfrom
wavebyrd:fix/145870-annotationlib-docstring
Open

gh-145870: Fix Format.SOURCE reference in get_annotations docstring#145889
wavebyrd wants to merge 1 commit intopython:mainfrom
wavebyrd:fix/145870-annotationlib-docstring

Conversation

@wavebyrd
Copy link

@wavebyrd wavebyrd commented Mar 12, 2026

The get_annotations() docstring in Lib/annotationlib.py incorrectly refers to the SOURCE format on line 922. This format was renamed to STRING during PEP 749 development (see #124412).

This change replaces SOURCE with STRING in the docstring to match the actual Format enum.

Fixes #145870

…ring

The get_annotations() docstring incorrectly referred to the SOURCE
format, which was renamed to STRING during PEP 749 development.
@wavebyrd wavebyrd requested a review from JelleZijlstra as a code owner March 12, 2026 22:14
@bedevere-app
Copy link

bedevere-app bot commented Mar 12, 2026

Most changes to Python require a NEWS entry. Add one using the blurb_it web app or the blurb command-line tool.

If this change has little impact on Python users, wait for a maintainer to apply the skip news label instead.

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.

annotationlib.get_annotations() docstring references an incorrect Format variant

2 participants