From: Jelle Zijlstra Date: Sun, 25 May 2025 17:23:28 +0000 (-0700) Subject: annotationlib docs: note that ForwardRef.evaluate eventually defaults to empty global... X-Git-Tag: v3.15.0a1~1530 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=b51b08a0a5fedde4f74e4cc338b8b5ad9656ad50;p=thirdparty%2FPython%2Fcpython.git annotationlib docs: note that ForwardRef.evaluate eventually defaults to empty globals (#134661) --- diff --git a/Doc/library/annotationlib.rst b/Doc/library/annotationlib.rst index 41c9ce479ff0..7dfc11449a6c 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