https://github.com/python/cpython/commit/58967d1abec9a88b1657c50b421795b4eb519e56 commit: 58967d1abec9a88b1657c50b421795b4eb519e56 branch: 3.10 author: Miss Islington (bot) <31488909+miss-islington at users.noreply.github.com> committer: miss-islington <31488909+miss-islington at users.noreply.github.com> date: 2022年12月22日T03:43:55-08:00 summary: 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 at outlook.com> files: M Lib/typing.py diff --git a/Lib/typing.py b/Lib/typing.py index 9f8710b9f773..03cf243366db 100644 --- a/Lib/typing.py +++ b/Lib/typing.py @@ -901,7 +901,7 @@ def add_two(x: float, y: float) -> float: Parameter specification variables can be introspected. e.g.: - P.__name__ == 'T' + P.__name__ == 'P' P.__bound__ == None P.__covariant__ == False P.__contravariant__ == False