summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorJoão D. Ferreira <jotomicron@gmail.com>2018-07-07 15:41:20 (GMT)
committerIvan Levkivskyi <levkivskyi@gmail.com>2018-07-07 15:41:20 (GMT)
commit86bfed372b81b8111a56a3311d537566d5df7f61 (patch)
tree7ef245300160b0bd3ed3642064029631bb17f9b3 /Lib
parent2800dcf656229c2ca4c90b4ddbace0717c41bb9e (diff)
downloadcpython-86bfed372b81b8111a56a3311d537566d5df7f61.zip
cpython-86bfed372b81b8111a56a3311d537566d5df7f61.tar.gz
cpython-86bfed372b81b8111a56a3311d537566d5df7f61.tar.bz2
Fix typo in TypeVar docstring (#8142)
"can be used do declare" → "can be used to declare"
Diffstat (limited to 'Lib')
-rw-r--r--Lib/typing.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/typing.py b/Lib/typing.py
index a95eb2e..4899263 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.