From d4795905c1258d1cb4212e3864e91f7090001e06 Mon Sep 17 00:00:00 2001 From: david-why Date: Thu, 22 Dec 2022 19:20:52 +0800 Subject: [PATCH] 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 --- Lib/typing.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Lib/typing.py b/Lib/typing.py index 9818237de43510..b287446169c226 100644 --- a/Lib/typing.py +++ b/Lib/typing.py @@ -1174,7 +1174,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