File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -371,7 +371,9 @@ For the remaining flags you can read the full ``mypy -h`` output.
371371.. note ::
372372
373373 Command line flags are liable to change between releases.
374-
374+
375+ .. _integrating-mypy :
376+
375377Integrating mypy into another Python application
376378************************************************
377379
@@ -388,13 +390,13 @@ A trivial example of this is the following::
388390
389391 import sys
390392 from mypy import api
391-
393+
392394 result = api.run(' '.join(sys.argv[1:]))
393-
395+
394396 if result[0]:
395397 print('\nType checking report:\n')
396398 print(result[0]) # stdout
397-
399+
398400 if result[1]:
399401 print('\nError report:\n')
400402 print(result[1]) # stderr
Original file line number Diff line number Diff line change @@ -102,6 +102,8 @@ The following global flags may only be set in the global section
102102 error messages.
103103
104104
105+ .. _per-module-flags :
106+
105107Per-module flags
106108****************
107109
Original file line number Diff line number Diff line change @@ -3,6 +3,30 @@ Revision history
33
44List of major changes to this document:
55
6+ - January 2017
7+ * Publish ``mypy `` version 0.470 on PyPI.
8+
9+ * Change package name from ``mypy-lang `` to ``mypy ``.
10+
11+ * Add :ref: `integrating-mypy `.
12+
13+ * Add :ref: `cheat-sheet-py3 `.
14+
15+ * Major update to :ref: `finding-imports `.
16+
17+ * Add :ref: `--ignore-missing-imports <ignore-missing-imports >`.
18+
19+ * Updates to :ref: `config-file `.
20+
21+ * Document underscore support in numeric literals.
22+
23+ * Document that arguments prefixed with ``__ `` are positional-only.
24+
25+ * Document that ``--hide-error-context `` is now on by default,
26+ and there is a new flag ``--show-error-context ``.
27+
28+ * Add ``ignore_errors `` to :ref: `per-module-flags `.
29+
630- November 2016
731 * Publish ``mypy-lang `` version 0.4.6 on PyPI.
832
You can’t perform that action at this time.
0 commit comments