From: Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> Date: Sun, 25 May 2025 17:39:44 +0000 (+0200) Subject: [3.14] annotationlib docs: note that ForwardRef.evaluate eventually defaults to empty... X-Git-Tag: v3.14.0b2~16 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=8c6653428f32189e4779a5ed444cf42e811368e0;p=thirdparty%2FPython%2Fcpython.git [3.14] annotationlib docs: note that ForwardRef.evaluate eventually defaults to empty globals (GH-134661) (#134662) annotationlib docs: note that ForwardRef.evaluate eventually defaults to empty globals (GH-134661) (cherry picked from commit b51b08a0a5fedde4f74e4cc338b8b5ad9656ad50) Co-authored-by: Jelle Zijlstra --- 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