[Python-checkins] Correct typo in typing.py (#100423)

AlexWaygood webhook-mailer at python.org
Thu Dec 22 06:21:03 EST 2022


https://github.com/python/cpython/commit/68981578eceee763da4163e93cf653cc6b1b6d35
commit: 68981578eceee763da4163e93cf653cc6b1b6d35
branch: main
author: david-why <david_why at outlook.com>
committer: AlexWaygood <Alex.Waygood at Gmail.com>
date: 2022-12-22T11:20:52Z
summary:

Correct typo in typing.py (#100423)

In the docstring of `ParamSpec`, the name of `P = ParamSpec('P')` was
mistakenly written as `'T'`.

files:
M Lib/typing.py

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 @@ 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



More information about the Python-checkins mailing list