Skip to content

Commit e019f98

Browse files
Fix typo in TypeVar docstring (GH-8142)
"can be used do declare" → "can be used to declare" (cherry picked from commit 86bfed3) Co-authored-by: João D. Ferreira <[email protected]>
1 parent 8e4c851 commit e019f98

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Lib/typing.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -509,7 +509,7 @@ def longest(x: A, y: A) -> A:
509509
At runtime, isinstance(x, T) and issubclass(C, T) will raise TypeError.
510510
511511
Type variables defined with covariant=True or contravariant=True
512-
can be used do declare covariant or contravariant generic types.
512+
can be used to declare covariant or contravariant generic types.
513513
See PEP 484 for more details. By default generic types are invariant
514514
in all type variables.
515515

0 commit comments

Comments
 (0)