Correct typo in typing.py (#100423)

In the docstring of `ParamSpec`, the name of `P = ParamSpec('P')` was
mistakenly written as `'T'`.
This commit is contained in:
david-why 2022-12-22 19:20:52 +08:00 committed by GitHub
parent 3c033a2e6f
commit 68981578ec
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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