[Python-checkins] peps: Add Type and ContextManager to list of everything in typing.py.
guido.van.rossum
python-checkins at python.org
Fri May 27 15:01:36 EDT 2016
https://hg.python.org/peps/rev/6c90e361daca
changeset: 6343:6c90e361daca
user: Guido van Rossum <guido at python.org>
date: Fri May 27 12:01:20 2016 -0700
summary:
Add Type and ContextManager to list of everything in typing.py.
files:
pep-0484.txt | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/pep-0484.txt b/pep-0484.txt
--- a/pep-0484.txt
+++ b/pep-0484.txt
@@ -1454,6 +1454,8 @@
* Generic, used to create user-defined generic classes
+* Type, used to annotate class objects
+
Generic variants of builtin collections:
* Dict, used as ``Dict[key_type, value_type]``
@@ -1487,6 +1489,8 @@
* Container
+* ContextManager
+
* Generator, used as ``Generator[yield_type, send_type,
return_type]``. This represents the return value of generator
functions. It is a subtype of ``Iterable`` and it has additional
--
Repository URL: https://hg.python.org/peps
More information about the Python-checkins
mailing list