Skip to content

Commit 16c3af3

Browse files
author
Lukasz Langa
committed
Update README.md to mention 3.6 and --fast-parser
1 parent 5145a11 commit 16c3af3

File tree

1 file changed

+11
-8
lines changed

1 file changed

+11
-8
lines changed

README.md

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -105,22 +105,25 @@ that each set of tests has a blacklist of modules that are not tested
105105
at all. The blacklists also live in the tests directory.
106106

107107
To manually run the mypy tests, you need to have Python 3.3 or higher
108-
and `pip3 install mypy-lang`. To run the pytype tests, you need
109-
Python 2.7 and install pytype from its repo.
108+
and `pip3 install mypy-lang`. To run 3.6 tests, you'll need to also
109+
`pip3 install typed-ast` needed for `--fast-parser` support.
110+
111+
To run the pytype tests, you need Python 2.7 and install pytype from its repo.
110112

111113
For mypy, if you are in the typeshed repo that is submodule of the
112114
mypy repo (so `..` refers to the mypy repo), there's a shortcut to run
113115
the mypy tests that avoids installing mypy:
114116
```bash
115117
$ PYTHONPATH=.. python3 tests/mypy_tests.py
116118
```
117-
This runs five sets of tests:
119+
This runs six sets of tests:
118120
```bash
119-
running mypy --python-version 3.5 --strict-optional # with 342 files
120-
running mypy --python-version 3.4 --strict-optional # with 342 files
121-
running mypy --python-version 3.3 --strict-optional # with 327 files
122-
running mypy --python-version 3.2 --strict-optional # with 326 files
123-
running mypy --python-version 2.7 --strict-optional # with 380 files
121+
running mypy --python-version 3.6 --strict-optional --fast-parser # with 353 files
122+
running mypy --python-version 3.5 --strict-optional # with 343 files
123+
running mypy --python-version 3.4 --strict-optional # with 343 files
124+
running mypy --python-version 3.3 --strict-optional # with 328 files
125+
running mypy --python-version 3.2 --strict-optional # with 327 files
126+
running mypy --python-version 2.7 --strict-optional # with 382 files
124127
```
125128
You can limit it to a single test by passing `-p2` or `-p3.5` e.g.
126129
```bash

0 commit comments

Comments
 (0)