diff options
author | david-why <david_why@outlook.com> | 2022-12-22 11:20:52 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-12-22 11:20:52 (GMT) |
commit | 68981578eceee763da4163e93cf653cc6b1b6d35 (patch) | |
tree | dc5ee46b6684394baf9fc2e033d66c5f2e6c4d05 /Lib/typing.py | |
parent | 3c033a2e6fbde56f904aeca138141be6564341cf (diff) | |
download | cpython-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.py | 2 |
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 |