Unverified Kaydet (Commit) e019f98d authored tarafından Miss Islington (bot)'s avatar Miss Islington (bot) Kaydeden (comit) GitHub

Fix typo in TypeVar docstring (GH-8142)

"can be used do declare" → "can be used to declare"
(cherry picked from commit 86bfed37)
Co-authored-by: 's avatarJoão D. Ferreira <jotomicron@gmail.com>
üst 8e4c8513
......@@ -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