Skip to content

Commit 2a0fa50

Browse files
wavebyrdCarson Jones
andauthored
gh-145870: Fix Format.SOURCE reference in get_annotations docstring (#145889)
The get_annotations() docstring incorrectly referred to the SOURCE format, which was renamed to STRING during PEP 749 development. Co-authored-by: Carson Jones <carson@Carsons-MacBook-Pro.local>
1 parent ae1b307 commit 2a0fa50

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Lib/annotationlib.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -919,7 +919,7 @@ def get_annotations(
919919
does not exist, the __annotate__ function is called. The
920920
FORWARDREF format uses __annotations__ if it exists and can be
921921
evaluated, and otherwise falls back to calling the __annotate__ function.
922-
The SOURCE format tries __annotate__ first, and falls back to
922+
The STRING format tries __annotate__ first, and falls back to
923923
using __annotations__, stringified using annotations_to_string().
924924
925925
This function handles several details for you:

0 commit comments

Comments
 (0)