Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Correct typo in typing.py
In the docstring of `ParamSpec`, the name of `P = ParamSpec('P')` was
mistakenly written as `'T'`.
  • Loading branch information
jollyroger182 authored Dec 22, 2022
commit 1b27532a0b51a5bba81d97f6f376efa32dbe70c5
2 changes: 1 addition & 1 deletion Lib/typing.py
Original file line number Diff line number Diff line change
Expand Up @@ -1194,7 +1194,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