diff options
author | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2022-12-22 11:43:55 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-12-22 11:43:55 (GMT) |
commit | 58967d1abec9a88b1657c50b421795b4eb519e56 (patch) | |
tree | 2741065e46a71d5a75338e4b9834a77bce470d6f | |
parent | 2dda6680ccb50bd1d8a8dcf0d524feb7daf5a3af (diff) | |
download | cpython-58967d1abec9a88b1657c50b421795b4eb519e56.zip cpython-58967d1abec9a88b1657c50b421795b4eb519e56.tar.gz cpython-58967d1abec9a88b1657c50b421795b4eb519e56.tar.bz2 |
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 68981578eceee763da4163e93cf653cc6b1b6d35)
Co-authored-by: david-why <david_why@outlook.com>
-rw-r--r-- | Lib/typing.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/typing.py b/Lib/typing.py index 9f8710b..03cf243 100644 --- a/Lib/typing.py +++ b/Lib/typing.py @@ -901,7 +901,7 @@ class ParamSpec(_Final, _Immutable, _TypeVarLike, _root=True): Parameter specification variables can be introspected. e.g.: - P.__name__ == 'T' + P.__name__ == 'P' P.__bound__ == None P.__covariant__ == False P.__contravariant__ == False |