diff options
author | Jelle Zijlstra <jelle.zijlstra@gmail.com> | 2025-05-25 10:23:28 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-05-25 17:23:28 +0000 |
commit | b51b08a0a5fedde4f74e4cc338b8b5ad9656ad50 (patch) | |
tree | 3e075307708c75e0892059ee71a962a55d0ae94f | |
parent | 52509cc94b1a18cb325dbfa7e5f830b32759a903 (diff) | |
download | cpython-b51b08a0a5fedde4f74e4cc338b8b5ad9656ad50.tar.gz cpython-b51b08a0a5fedde4f74e4cc338b8b5ad9656ad50.zip |
annotationlib docs: note that ForwardRef.evaluate eventually defaults to empty globals (#134661)
-rw-r--r-- | Doc/library/annotationlib.rst | 4 |
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 |