]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
annotationlib docs: note that ForwardRef.evaluate eventually defaults to empty global...
authorJelle Zijlstra <jelle.zijlstra@gmail.com>
Sun, 25 May 2025 17:23:28 +0000 (10:23 -0700)
committerGitHub <noreply@github.com>
Sun, 25 May 2025 17:23:28 +0000 (17:23 +0000)
Doc/library/annotationlib.rst

index 41c9ce479ff0f8d068fbf024550a6e54dd439edf..7dfc11449a6cbcc82396ace59fc0888bfaceb03f 100644 (file)
@@ -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