File tree Expand file tree Collapse file tree 2 files changed +4
-6
lines changed Expand file tree Collapse file tree 2 files changed +4
-6
lines changed Original file line number Diff line number Diff line change @@ -613,9 +613,8 @@ any valid Python expression. The presence of annotations does not change the
613
613
semantics of a function. The annotation values are available as values of
614
614
a dictionary keyed by the parameters' names in the :attr: `__annotations__ `
615
615
attribute of the function object. Used annnotations are preserved as strings at
616
- runtime which enables postponed evaluation. In this case annotations may be
617
- evaluated in In this case annotations may be evaluated in a different order
618
- than they appear in the source code.
616
+ runtime which enables postponed evaluation (annotations may be evaluated in a
617
+ different order than they appear in the source code).
619
618
620
619
.. index :: pair: lambda; expression
621
620
Original file line number Diff line number Diff line change 1
1
import unittest
2
- from textwrap import dedent
3
2
import sys
3
+ from textwrap import dedent
4
4
5
- class AnnotationsFutureTestCase (unittest .TestCase ):
5
+ class PostponedAnnotationsTestCase (unittest .TestCase ):
6
6
template = dedent (
7
7
"""
8
- from __future__ import annotations
9
8
def f() -> {ann}:
10
9
...
11
10
def g(arg: {ann}) -> None:
You can’t perform that action at this time.
0 commit comments