https://github.com/python/cpython/commit/8c6653428f32189e4779a5ed444cf42e811368e0
commit: 8c6653428f32189e4779a5ed444cf42e811368e0
branch: 3.14
author: Miss Islington (bot) <31488909+miss-isling...@users.noreply.github.com>
committer: JelleZijlstra <jelle.zijls...@gmail.com>
date: 2025-05-25T10:39:44-07:00
summary:

[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 <jelle.zijls...@gmail.com>

files:
M Doc/library/annotationlib.rst

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
 
 

_______________________________________________
Python-checkins mailing list -- python-checkins@python.org
To unsubscribe send an email to python-checkins-le...@python.org
https://mail.python.org/mailman3//lists/python-checkins.python.org
Member address: arch...@mail-archive.com

Reply via email to