Skip to content

Commit 41fc20c

Browse files
Update docs/spec/annotations.rst
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
1 parent 070312d commit 41fc20c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/spec/annotations.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,7 @@ definition may be expressed as a string literal, to be resolved later.
224224

225225
The string literal should contain a syntactically valid Python expression
226226
(i.e., ``compile(lit, '', 'eval')`` should succeed) that evaluates to a valid
227-
:term:`annotation expression`. Names within the expression are looked up in the
227+
:term:`annotation expression`. Regardless of the Python version used, names within the expression are looked up in the
228228
same way as they would be looked up at runtime in Python 3.14 and higher if the
229229
annotation was not enclosed in a string literal. Thus, name lookup follows
230230
general rules (e.g., the current function, class, or module scope first, and

0 commit comments

Comments
 (0)