Skip to content

Commit 8809daa

Browse files
author
Guido van Rossum
committed
Correct claim about type var upper bound.
1 parent 65bc5a4 commit 8809daa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/source/kinds_of_types.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -478,7 +478,7 @@ Now mypy will infer the correct type of the result when we call
478478
The value corresponding to ``Type[C]`` must be an actual class
479479
object that's a subtype of ``C``. Its constructor must be
480480
compatible with the constructor of ``C``. If ``C`` is a type
481-
variable, its upper bound must be a ``Type[]`` construct.
481+
variable, its upper bound must be a class object.
482482

483483
For more details about ``Type[]`` see `PEP 484
484484
<https://www.python.org/dev/peps/pep-0484/#the-type-of-class-objects>`_.

0 commit comments

Comments
 (0)