From: Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> Date: Sat, 7 Jul 2018 16:05:36 +0000 (-0700) Subject: Fix typo in TypeVar docstring (GH-8142) X-Git-Tag: v3.7.1rc1~315 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=e019f98dc2fdddbee7990e518ead00de2245a0c8;p=python Fix typo in TypeVar docstring (GH-8142) "can be used do declare" → "can be used to declare" (cherry picked from commit 86bfed372b81b8111a56a3311d537566d5df7f61) Co-authored-by: João D. Ferreira --- diff --git a/Lib/typing.py b/Lib/typing.py index a95eb2e184..48992633ac 100644 --- a/Lib/typing.py +++ b/Lib/typing.py @@ -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.