diff options
author | david-why <david_why@outlook.com> | 2022-12-22 19:20:52 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-12-22 11:20:52 +0000 |
commit | 68981578eceee763da4163e93cf653cc6b1b6d35 (patch) | |
tree | dc5ee46b6684394baf9fc2e033d66c5f2e6c4d05 | |
parent | 3c033a2e6fbde56f904aeca138141be6564341cf (diff) | |
download | cpython-git-68981578eceee763da4163e93cf653cc6b1b6d35.tar.gz |
Correct typo in typing.py (#100423)
In the docstring of `ParamSpec`, the name of `P = ParamSpec('P')` was
mistakenly written as `'T'`.
-rw-r--r-- | Lib/typing.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/typing.py b/Lib/typing.py index d9d6fbcdb8..8bc38f98c8 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 |