[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 b51b08a0a5)

Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
This commit is contained in:
Miss Islington (bot) 2025-05-25 19:39:44 +02:00 committed by GitHub
parent c61fd7c0f2
commit 8c6653428f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -211,6 +211,10 @@ Classes
means may not have any information about their scope, so passing means may not have any information about their scope, so passing
arguments to this method may be necessary to evaluate them successfully. 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 .. versionadded:: 3.14