Skip to content

Commit

Permalink
Fix typo in TypeVar docstring (GH-8142)
Browse files Browse the repository at this point in the history
"can be used do declare" → "can be used to declare"
(cherry picked from commit 86bfed3)

Co-authored-by: João D. Ferreira <jotomicron@gmail.com>
  • Loading branch information
miss-islington and jdferreira authored Jul 7, 2018
1 parent 8e4c851 commit e019f98
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Lib/typing.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit e019f98

Please sign in to comment.