← Back to DAGDA | Support | Source: https://github.com/ambv/static-annotations/commit/91c038d0b7ea7f1e24614aacfc788a300544dddf
Skip to content
This repository was archived by the owner on Jun 22, 2020. It is now read-only.

Commit 91c038d

Browse files
author
Lukasz Langa
committed
Trivial rewording
1 parent 3eaf4dd commit 91c038d

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

‎pep-0563.rst‎

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -90,8 +90,8 @@ runtime will have to perform postponed evaluation.
9090

9191
If an annotation was already a string, this string is preserved
9292
verbatim. In other cases, the string form is obtained from the AST
93-
during the compilation step, which means that the string form preserved
94-
might not preserve the exact formatting of the source.
93+
during the compilation step, which means that the string form might not
94+
preserve the exact formatting of the source.
9595

9696
Annotations need to be syntactically valid Python expressions, also when
9797
passed as literal strings (i.e. ``compile(literal, '', 'eval')``).
@@ -129,10 +129,10 @@ annotation.
129129

130130
In both cases it's important to consider how globals and locals affect
131131
the postponed evaluation. An annotation is no longer evaluated at the
132-
time of definition and, more importantly, *in the same scope* it was
133-
defined. Consequently, using local state in annotations is no longer
134-
possible in general. As for globals, the module where the annotation
135-
was defined is the correct context for postponed evaluation.
132+
time of definition and, more importantly, *in the same scope* where it
133+
was defined. Consequently, using local state in annotations is no
134+
longer possible in general. As for globals, the module where the
135+
annotation was defined is the correct context for postponed evaluation.
136136

137137
The ``get_type_hints()`` function automatically resolves the correct
138138
value of ``globalns`` for functions and classes. It also automatically

0 commit comments

Comments
 (0)