Skip to content

Commit 6afc389

Browse files
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 3e715e0 commit 6afc389

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
@@ -1174,7 +1174,7 @@ def add_two(x: float, y: float) -> float:
11741174
11751175
Parameter specification variables can be introspected. e.g.:
11761176
1177-
P.__name__ == 'T'
1177+
P.__name__ == 'P'
11781178
P.__bound__ == None
11791179
P.__covariant__ == False
11801180
P.__contravariant__ == False

0 commit comments

Comments
 (0)