]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Correct typo in typing.py (GH-100423)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Thu, 22 Dec 2022 11:43:55 +0000 (03:43 -0800)
committerGitHub <noreply@github.com>
Thu, 22 Dec 2022 11:43:55 +0000 (03:43 -0800)
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>
Lib/typing.py

index 9f8710b9f773b8ba8d9d8805303ef60987ed5d64..03cf243366db88c23e63825894766116d1d84627 100644 (file)
@@ -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