From: david-why Date: Thu, 22 Dec 2022 11:20:52 +0000 (+0800) Subject: Correct typo in typing.py (#100423) X-Git-Tag: v3.12.0a4~166 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=68981578eceee763da4163e93cf653cc6b1b6d35;p=thirdparty%2FPython%2Fcpython.git Correct typo in typing.py (#100423) In the docstring of `ParamSpec`, the name of `P = ParamSpec('P')` was mistakenly written as `'T'`. --- diff --git a/Lib/typing.py b/Lib/typing.py index d9d6fbcdb8f0..8bc38f98c867 100644 --- a/Lib/typing.py +++ b/Lib/typing.py @@ -1194,7 +1194,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