Skip to content

Commit 5841d9b

Browse files
ilevkivskyigvanrossum
authored andcommitted
Add class Protocol and @runtime to typing extensions (#464)
1 parent 468b3fe commit 5841d9b

File tree

6 files changed

+1716
-5
lines changed

6 files changed

+1716
-5
lines changed

.travis.yml

+1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ language: python
33
python:
44
- "nightly"
55
- "3.7-dev"
6+
- "3.6.2"
67
- "3.6.1"
78
- "3.6.0"
89
- "3.5.3"

typing_extensions/README.rst

+4-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,8 @@ able to take advantage of new types added to the ``typing`` module, such as
1717

1818
The ``typing_extensions`` module contains both backports of these changes
1919
as well as experimental types that will eventually be added to the ``typing``
20-
module.
20+
module, such as ``Protocol`` (see PEP 544 for details about protocols and
21+
static duck typing).
2122

2223
Users of other Python versions should continue to install and use
2324
use the ``typing`` module from PyPi instead of using this one unless
@@ -40,6 +41,8 @@ All Python versions:
4041
- ``NewType``
4142
- ``NoReturn``
4243
- ``overload`` (note that older versions of ``typing`` only let you use ``overload`` in stubs)
44+
- ``Protocol`` (except on Python 3.5.0)
45+
- ``runtime`` (except on Python 3.5.0)
4346
- ``Text``
4447
- ``Type``
4548
- ``TYPE_CHECKING``

0 commit comments

Comments
 (0)