[Python-checkins] cpython (3.5): Comment/docstring tweaks for typing.py.
guido.van.rossum
python-checkins at python.org
Thu May 26 14:37:42 EDT 2016
https://hg.python.org/cpython/rev/da0c848b9bae
changeset: 101507:da0c848b9bae
branch: 3.5
parent: 101505:371fe8b36f4a
user: Guido van Rossum <guido at python.org>
date: Thu May 26 09:56:19 2016 -0700
summary:
Comment/docstring tweaks for typing.py.
files:
Lib/typing.py | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/Lib/typing.py b/Lib/typing.py
--- a/Lib/typing.py
+++ b/Lib/typing.py
@@ -1579,8 +1579,9 @@
CT = TypeVar('CT', covariant=True, bound=type)
+# This is not a real generic class. Don't use outside annotations.
class Type(type, Generic[CT], extra=type):
- """A generic type usable to annotate class objects.
+ """A special construct usable to annotate class objects.
For example, suppose we have the following classes::
--
Repository URL: https://hg.python.org/cpython
More information about the Python-checkins
mailing list