Skip to content

Commit 6898157

Browse files
authored
Correct typo in typing.py (python#100423)
In the docstring of `ParamSpec`, the name of `P = ParamSpec('P')` was mistakenly written as `'T'`.
1 parent 3c033a2 commit 6898157

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
@@ -1194,7 +1194,7 @@ def add_two(x: float, y: float) -> float:
11941194
11951195
Parameter specification variables can be introspected. e.g.:
11961196
1197-
P.__name__ == 'T'
1197+
P.__name__ == 'P'
11981198
P.__bound__ == None
11991199
P.__covariant__ == False
12001200
P.__contravariant__ == False

0 commit comments

Comments
 (0)