Skip to content

Commit 510af74

Browse files
Carson JonesCarson Jones
authored andcommitted
gh-145870: Fix Format.SOURCE reference in get_annotations docstring
The get_annotations() docstring incorrectly referred to the SOURCE format, which was renamed to STRING during PEP 749 development.
1 parent cd52172 commit 510af74

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)