From: Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> Date: Thu, 22 Dec 2022 11:49:18 +0000 (-0800) Subject: Correct typo in typing.py (GH-100423) X-Git-Tag: v3.11.2~154 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=6afc389e1d1fa969a6cbfe5d6e51d6c2f8637d7d;p=thirdparty%2FPython%2Fcpython.git 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 --- diff --git a/Lib/typing.py b/Lib/typing.py index 9818237de435..b287446169c2 100644 --- a/Lib/typing.py +++ b/Lib/typing.py @@ -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