Skip to content

Commit 8c66534

Browse files
[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 b51b08a) Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
1 parent c61fd7c commit 8c66534

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Doc/library/annotationlib.rst

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -211,6 +211,10 @@ Classes
211211
means may not have any information about their scope, so passing
212212
arguments to this method may be necessary to evaluate them successfully.
213213

214+
If no *owner*, *globals*, *locals*, or *type_params* are provided and the
215+
:class:`~ForwardRef` does not contain information about its origin,
216+
empty globals and locals dictionaries are used.
217+
214218
.. versionadded:: 3.14
215219

216220

0 commit comments

Comments
 (0)