[Python-checkins] Fix typo in TypeVar docstring (#8142)

Ivan Levkivskyi webhook-mailer at python.org
Sat Jul 7 11:41:23 EDT 2018


https://github.com/python/cpython/commit/86bfed372b81b8111a56a3311d537566d5df7f61
commit: 86bfed372b81b8111a56a3311d537566d5df7f61
branch: master
author: João D. Ferreira <jotomicron at gmail.com>
committer: Ivan Levkivskyi <levkivskyi at gmail.com>
date: 2018-07-07T16:41:20+01:00
summary:

Fix typo in TypeVar docstring (#8142)

"can be used do declare" → "can be used to declare"

files:
M Lib/typing.py

diff --git a/Lib/typing.py b/Lib/typing.py
index a95eb2e184a0..48992633ac34 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.
 



More information about the Python-checkins mailing list