Skip to content

Commit

Permalink
Correct typo in typing.py (pythonGH-100423)
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
david-why authored and miss-islington committed Dec 22, 2022
1 parent 2dda668 commit cb4d5d6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Lib/typing.py
Original file line number Diff line number Diff line change
Expand Up @@ -901,7 +901,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
Expand Down

0 comments on commit cb4d5d6

Please sign in to comment.