From: Guido van Rossum Date: Thu, 26 May 2016 16:56:19 +0000 (-0700) Subject: Comment/docstring tweaks for typing.py. X-Git-Tag: v3.5.2rc1~116 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=b22c708989f8a8e155939b8938b67d3f6afafb45;p=thirdparty%2FPython%2Fcpython.git Comment/docstring tweaks for typing.py. --- diff --git a/Lib/typing.py b/Lib/typing.py index 4bd213543627..b7f3ffa0aa26 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::