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
miss-islington and david-why authored Dec 22, 2022

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
1 parent 3e715e0 commit 6afc389
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
@@ -1174,7 +1174,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

0 comments on commit 6afc389

Please sign in to comment.