mirror of
https://github.com/python/cpython.git
synced 2025-08-04 08:59:19 +00:00
Correct typo in typing.py (GH-100423)
In the docstring of `ParamSpec`, the name of `P = ParamSpec('P')` was
mistakenly written as `'T'`.
(cherry picked from commit 68981578ec
)
Co-authored-by: david-why <david_why@outlook.com>
This commit is contained in:
parent
3e715e0cc8
commit
6afc389e1d
1 changed files with 1 additions and 1 deletions
|
@ -1174,7 +1174,7 @@ class ParamSpec(_Final, _Immutable, _BoundVarianceMixin, _PickleUsingNameMixin,
|
|||
|
||||
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