Skip to content

Commit e34f6cc

Browse files
authored
Add 0.510 to revision history (#3318)
1 parent 8ea1aa5 commit e34f6cc

File tree

6 files changed

+30
-6
lines changed

6 files changed

+30
-6
lines changed

docs/source/command_line.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -313,7 +313,7 @@ Here are some more useful flags:
313313
``--cache-dir=/dev/null`` (UNIX) or ``--cache-dir=nul`` (Windows).
314314
Cache files belonging to a different mypy version are ignored.
315315

316-
.. _quick:
316+
.. _quick-mode:
317317

318318
- ``--quick-and-dirty`` is an experimental, unsafe variant of
319319
:ref:`incremental mode <incremental>`. Quick mode is faster than

docs/source/config_file.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ The following global flags may only be set in the global section
103103
(Windows).
104104

105105
- ``quick_and_dirty`` (Boolean, default False) enables :ref:`quick
106-
mode <quick>`.
106+
mode <quick-mode>`.
107107

108108
- ``show_error_context`` (Boolean, default False) shows
109109
context notes before errors.

docs/source/function_overloading.rst

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
.. _function-overloading:
2+
13
Function Overloading
24
====================
35

@@ -20,7 +22,7 @@ You might be tempted to annotate it like so:
2022
... # Return a sequence of Ts here
2123
else:
2224
raise TypeError(...)
23-
25+
2426
But this is too loose, as it implies that when you pass in an ``int``
2527
you might sometimes get out a single item and sometimes a sequence.
2628
The return type depends on the parameter type in a way that can't be

docs/source/kinds_of_types.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -188,6 +188,8 @@ using bidirectional type inference:
188188
If you want to give the argument or return value types explicitly, use
189189
an ordinary, perhaps nested function definition.
190190

191+
.. _extended_callable:
192+
191193
Extended Callable types
192194
***********************
193195

docs/source/python36.rst

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,8 @@ Mypy fully supports this syntax, interpreting them as equivalent to
2727
foo = None # type: Optional[int]
2828
bar = [] # type: List[str]
2929
30+
.. _class-var:
31+
3032
An additional feature defined in PEP 526 is also supported: you can
3133
mark names intended to be used as class variables with ``ClassVar``.
3234
In a pinch you can also use ClassVar in ``# type`` comments.
@@ -71,6 +73,8 @@ Mypy fully supports this syntax:
7173
hexes: List[int] = []
7274
hexes.append(0x_FF_FF_FF_FF)
7375
76+
.. _async_generators_and_comprehensions:
77+
7478
Asynchronous generators (`PEP 525 <https://www.python.org/dev/peps/pep-0525>`_) and comprehensions (`PEP 530 <https://www.python.org/dev/peps/pep-0530>`_)
7579
----------------------------------------------------------------------------------------------------------------------------------------------------------
7680

docs/source/revision_history.rst

Lines changed: 19 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,26 @@
11
Revision history
22
================
33

4-
List of major changes to this document:
4+
List of major changes:
55

6-
- April 2017
7-
* Remove option ``strict_boolean``.
6+
- May 2017
7+
* Publish ``mypy`` version 0.510 on PyPI.
8+
9+
* Remove option ``--no-fast-parser``.
10+
11+
* Deprecate option ``--strict-boolean``.
12+
13+
* Drop support for Python 3.2 as type checking target.
14+
15+
* Add support for :ref:`overloaded functions with implementations <function-overloading>`.
16+
17+
* Add :ref:`extended_callable`.
18+
19+
* Add :ref:`async_generators_and_comprehensions`.
20+
21+
* Add :ref:`ClassVar <class-var>`.
22+
23+
* Add :ref:`quick mode <quick-mode>`.
824

925
- March 2017
1026
* Publish ``mypy`` version 0.500 on PyPI.

0 commit comments

Comments
 (0)