aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorJelle Zijlstra <jelle.zijlstra@gmail.com>2025-05-25 10:23:28 -0700
committerGitHub <noreply@github.com>2025-05-25 17:23:28 +0000
commitb51b08a0a5fedde4f74e4cc338b8b5ad9656ad50 (patch)
tree3e075307708c75e0892059ee71a962a55d0ae94f
parent52509cc94b1a18cb325dbfa7e5f830b32759a903 (diff)
downloadcpython-b51b08a0a5fedde4f74e4cc338b8b5ad9656ad50.tar.gz
cpython-b51b08a0a5fedde4f74e4cc338b8b5ad9656ad50.zip
annotationlib docs: note that ForwardRef.evaluate eventually defaults to empty globals (#134661)
-rw-r--r--Doc/library/annotationlib.rst4
1 files changed, 4 insertions, 0 deletions
diff --git a/Doc/library/annotationlib.rst b/Doc/library/annotationlib.rst
index 41c9ce479ff..7dfc11449a6 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