Skip to content

Commit 58967d1

Browse files
miss-islingtondavid-why
andauthoredDec 22, 2022
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 6898157) Co-authored-by: david-why <david_why@outlook.com>
1 parent 2dda668 commit 58967d1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎Lib/typing.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -901,7 +901,7 @@ def add_two(x: float, y: float) -> float:
901901
902902
Parameter specification variables can be introspected. e.g.:
903903
904-
P.__name__ == 'T'
904+
P.__name__ == 'P'
905905
P.__bound__ == None
906906
P.__covariant__ == False
907907
P.__contravariant__ == False

0 commit comments

Comments
 (0)