gh-145870: Fix Format.SOURCE reference in get_annotations docstring#145889
Conversation
…ring The get_annotations() docstring incorrectly referred to the SOURCE format, which was renamed to STRING during PEP 749 development.
|
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 |
|
Ping on this docstring fix for Format.SOURCE reference. Simple documentation correction. |
|
Thanks @wavebyrd for the PR, and @JelleZijlstra for merging it 🌮🎉.. I'm working now to backport this PR to: 3.14. |
|
Thanks @wavebyrd for the PR, and @JelleZijlstra for merging it 🌮🎉.. I'm working now to backport this PR to: 3.14. |
…ring (pythonGH-145889) The get_annotations() docstring incorrectly referred to the SOURCE format, which was renamed to STRING during PEP 749 development. (cherry picked from commit 2a0fa50) Co-authored-by: wavebyrd <160968744+wavebyrd@users.noreply.github.com> Co-authored-by: Carson Jones <carson@Carsons-MacBook-Pro.local>
…ring (pythonGH-145889) The get_annotations() docstring incorrectly referred to the SOURCE format, which was renamed to STRING during PEP 749 development. (cherry picked from commit 2a0fa50) Co-authored-by: wavebyrd <160968744+wavebyrd@users.noreply.github.com> Co-authored-by: Carson Jones <carson@Carsons-MacBook-Pro.local>
|
GH-146036 is a backport of this pull request to the 3.14 branch. |
|
Sorry @wavebyrd and @JelleZijlstra, I had trouble completing the backport. |
The
get_annotations()docstring inLib/annotationlib.pyincorrectly refers to theSOURCEformat on line 922. This format was renamed toSTRINGduring PEP 749 development (see #124412).This change replaces
SOURCEwithSTRINGin the docstring to match the actualFormatenum.Fixes #145870
annotationlib.get_annotations()docstring references an incorrectFormatvariant #145870