summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGuido van Rossum <guido@dropbox.com>2016-05-26 16:56:46 (GMT)
committerGuido van Rossum <guido@dropbox.com>2016-05-26 16:56:46 (GMT)
commite67c92ea70edc05a48c16a502312109586718302 (patch)
tree6abd57c43c281cece13aba929ef917b2f6352dd0
parentb69d3fea8828d709c6e6f4df4beb6b56874f69bd (diff)
parentb22c708989f8a8e155939b8938b67d3f6afafb45 (diff)
downloadcpython-e67c92ea70edc05a48c16a502312109586718302.zip
cpython-e67c92ea70edc05a48c16a502312109586718302.tar.gz
cpython-e67c92ea70edc05a48c16a502312109586718302.tar.bz2
Comment/docstring tweaks for typing.py. (Merge 3.5->3.6)
-rw-r--r--Lib/typing.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/Lib/typing.py b/Lib/typing.py
index 4bd2135..b7f3ffa 100644
--- a/Lib/typing.py
+++ b/Lib/typing.py
@@ -1579,8 +1579,9 @@ class Generator(Iterator[T_co], Generic[T_co, T_contra, V_co],
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::