Skip to content

Commit

Permalink
Fix typo in TypeVar docstring (python#8142)
Browse files Browse the repository at this point in the history
"can be used do declare" → "can be used to declare"
  • Loading branch information
jdferreira authored and ilevkivskyi committed Jul 7, 2018
1 parent 2800dcf commit 86bfed3
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 86bfed3

Please sign in to comment.