https://github.com/python/cpython/commit/b51b08a0a5fedde4f74e4cc338b8b5ad9656ad50
commit: b51b08a0a5fedde4f74e4cc338b8b5ad9656ad50
branch: main
author: Jelle Zijlstra <[email protected]>
committer: JelleZijlstra <[email protected]>
date: 2025-05-25T17:23:28Z
summary:
annotationlib docs: note that ForwardRef.evaluate eventually defaults to empty
globals (#134661)
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 -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3//lists/python-checkins.python.org
Member address: [email protected]