mirror of
https://github.com/python/cpython.git
synced 2026-01-06 15:32:22 +00:00
Correct typo in typing.py (#100423)
In the docstring of `ParamSpec`, the name of `P = ParamSpec('P')` was
mistakenly written as `'T'`.
This commit is contained in:
parent
3c033a2e6f
commit
68981578ec
1 changed files with 1 additions and 1 deletions
|
|
@ -1194,7 +1194,7 @@ def add_two(x: float, y: float) -> float:
|
|||
|
||||
Parameter specification variables can be introspected. e.g.:
|
||||
|
||||
P.__name__ == 'T'
|
||||
P.__name__ == 'P'
|
||||
P.__bound__ == None
|
||||
P.__covariant__ == False
|
||||
P.__contravariant__ == False
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue