Commit 86bfed37 authored by João D. Ferreira's avatar João D. Ferreira Committed by Ivan Levkivskyi

Fix typo in TypeVar docstring (#8142)

"can be used do declare" → "can be used to declare"
parent 2800dcf6
......@@ -509,7 +509,7 @@ class TypeVar(_Final, _Immutable, _root=True):
At runtime, isinstance(x, T) and issubclass(C, T) will raise TypeError.
Type variables defined with covariant=True or contravariant=True
can be used do declare covariant or contravariant generic types.
can be used to declare covariant or contravariant generic types.
See PEP 484 for more details. By default generic types are invariant
in all type variables.
......
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