Commit e67c92ea authored by Guido van Rossum's avatar Guido van Rossum

Comment/docstring tweaks for typing.py. (Merge 3.5->3.6)

parents b69d3fea b22c7089
......@@ -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::
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment