summaryrefslogtreecommitdiffstats
path: root/Lib/typing.py
diff options
context:
space:
mode:
authordavid-why <david_why@outlook.com>2022-12-22 11:20:52 (GMT)
committerGitHub <noreply@github.com>2022-12-22 11:20:52 (GMT)
commit68981578eceee763da4163e93cf653cc6b1b6d35 (patch)
treedc5ee46b6684394baf9fc2e033d66c5f2e6c4d05 /Lib/typing.py
parent3c033a2e6fbde56f904aeca138141be6564341cf (diff)
downloadcpython-68981578eceee763da4163e93cf653cc6b1b6d35.zip
cpython-68981578eceee763da4163e93cf653cc6b1b6d35.tar.gz
cpython-68981578eceee763da4163e93cf653cc6b1b6d35.tar.bz2
Correct typo in typing.py (#100423)
In the docstring of `ParamSpec`, the name of `P = ParamSpec('P')` was mistakenly written as `'T'`.
Diffstat (limited to 'Lib/typing.py')
-rw-r--r--Lib/typing.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/typing.py b/Lib/typing.py
index d9d6fbc..8bc38f9 100644
--- a/Lib/typing.py
+++ b/Lib/typing.py
@@ -1194,7 +1194,7 @@ class ParamSpec(_Final, _Immutable, _BoundVarianceMixin, _PickleUsingNameMixin,
Parameter specification variables can be introspected. e.g.:
- P.__name__ == 'T'
+ P.__name__ == 'P'
P.__bound__ == None
P.__covariant__ == False
P.__contravariant__ == False