Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit b51b08a

Browse files
annotationlib docs: note that ForwardRef.evaluate eventually defaults to empty globals (#134661)
1 parent 52509cc commit b51b08a

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)