mirror of
https://github.com/python/cpython.git
synced 2025-09-19 07:00:59 +00:00
Comment/docstring tweaks for typing.py.
This commit is contained in:
parent
0025eb145f
commit
b22c708989
1 changed files with 2 additions and 1 deletions
|
@ -1579,8 +1579,9 @@ class Generator(Iterator[T_co], Generic[T_co, T_contra, V_co],
|
||||||
CT = TypeVar('CT', covariant=True, bound=type)
|
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):
|
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::
|
For example, suppose we have the following classes::
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue