mirror of
https://github.com/python/cpython.git
synced 2025-09-26 10:19:53 +00:00
Fix typo in TypeVar docstring (#8142)
"can be used do declare" → "can be used to declare"
This commit is contained in:
parent
2800dcf656
commit
86bfed372b
1 changed files with 1 additions and 1 deletions
|
@ -509,7 +509,7 @@ class TypeVar(_Final, _Immutable, _root=True):
|
||||||
At runtime, isinstance(x, T) and issubclass(C, T) will raise TypeError.
|
At runtime, isinstance(x, T) and issubclass(C, T) will raise TypeError.
|
||||||
|
|
||||||
Type variables defined with covariant=True or contravariant=True
|
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
|
See PEP 484 for more details. By default generic types are invariant
|
||||||
in all type variables.
|
in all type variables.
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue