Skip to content

Commit 6bd5fee

Browse files
committed
Rename test, apply doc suggestion
1 parent 1d77917 commit 6bd5fee

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

Doc/reference/compound_stmts.rst

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -613,9 +613,8 @@ any valid Python expression. The presence of annotations does not change the
613613
semantics of a function. The annotation values are available as values of
614614
a dictionary keyed by the parameters' names in the :attr:`__annotations__`
615615
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).
619618

620619
.. index:: pair: lambda; expression
621620

Lib/test/test_annotations.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,10 @@
11
import unittest
2-
from textwrap import dedent
32
import sys
3+
from textwrap import dedent
44

5-
class AnnotationsFutureTestCase(unittest.TestCase):
5+
class PostponedAnnotationsTestCase(unittest.TestCase):
66
template = dedent(
77
"""
8-
from __future__ import annotations
98
def f() -> {ann}:
109
...
1110
def g(arg: {ann}) -> None:

0 commit comments

Comments
 (0)