From 3a60393ebe7d1fcd0121b07a8d0d8a0ee7e25f76 Mon Sep 17 00:00:00 2001 From: Jelle Zijlstra Date: Sun, 25 May 2025 10:23:28 -0700 Subject: [PATCH] annotationlib docs: note that ForwardRef.evaluate eventually defaults to empty globals (GH-134661) (cherry picked from commit b51b08a0a5fedde4f74e4cc338b8b5ad9656ad50) Co-authored-by: Jelle Zijlstra --- Doc/library/annotationlib.rst | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Doc/library/annotationlib.rst b/Doc/library/annotationlib.rst index 41c9ce479ff0f8..7dfc11449a6cbc 100644 --- a/Doc/library/annotationlib.rst +++ b/Doc/library/annotationlib.rst @@ -211,6 +211,10 @@ Classes means may not have any information about their scope, so passing arguments to this method may be necessary to evaluate them successfully. + If no *owner*, *globals*, *locals*, or *type_params* are provided and the + :class:`~ForwardRef` does not contain information about its origin, + empty globals and locals dictionaries are used. + .. versionadded:: 3.14