Skip to content

Commit cbf8139

Browse files
author
Guido van Rossum
committed
Clarify what is needed for PEP 526 support
1 parent 0d651cd commit cbf8139

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

docs/source/python36.rst

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,13 @@ Mypy fully supports this syntax, interpreting them as equivalent to
2929
foo = None # type: Optional[int]
3030
bar = [] # type: List[str]
3131
32+
.. note::
33+
34+
This requires the ``--fast-parser`` flag and it requires that the
35+
`typed_ast <https://pypi.python.org/pypi/typed-ast>`_ package is
36+
installed and has at least version 0.6.1. Use ``pip3 install -U typed_ast``.
37+
38+
3239
Literal string formatting (`PEP 498 <https://www.python.org/dev/peps/pep-0498>`_)
3340
---------------------------------------------------------------------------------
3441

0 commit comments

Comments
 (0)