]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Comment/docstring tweaks for typing.py.
authorGuido van Rossum <guido@python.org>
Thu, 26 May 2016 16:56:19 +0000 (09:56 -0700)
committerGuido van Rossum <guido@python.org>
Thu, 26 May 2016 16:56:19 +0000 (09:56 -0700)
Lib/typing.py

index 4bd2135436273baad554583ec02b8d5976d467e5..b7f3ffa0aa2646c3924e82ed6b5ff165a29fef9a 100644 (file)
@@ -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::