From 55ae3ffc4ca31a82a221d1ce9673f111c844e8d4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jo=C3=A3o=20D=2E=20Ferreira?= Date: Fri, 6 Jul 2018 17:10:00 +0100 Subject: [PATCH] Fix typo in TypeVar docstring MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit "can be used do declare" → "can be used to declare" --- Lib/typing.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Lib/typing.py b/Lib/typing.py index a95eb2e184a0f4..48992633ac349d 100644 --- a/Lib/typing.py +++ b/Lib/typing.py @@ -509,7 +509,7 @@ def longest(x: A, y: A) -> A: 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.