summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohan Dahlin <jdahlin@gmail.com>2021-01-08 18:08:21 (GMT)
committerGitHub <noreply@github.com>2021-01-08 18:08:21 (GMT)
commit68e1f259bee7723d63488854b69a4bef2b7e5db2 (patch)
tree5678fbd9e504973041789017403b9768055db761
parent11ef53aefbecfac18b63cee518a7184f771f708c (diff)
downloadcpython-68e1f259bee7723d63488854b69a4bef2b7e5db2.zip
cpython-68e1f259bee7723d63488854b69a4bef2b7e5db2.tar.gz
cpython-68e1f259bee7723d63488854b69a4bef2b7e5db2.tar.bz2
Fix a typo in docs for typing.Concatenate (#24169)
Return param spec should be R, not T
-rw-r--r--Doc/library/typing.rst2
1 files changed, 1 insertions, 1 deletions
diff --git a/Doc/library/typing.rst b/Doc/library/typing.rst
index d74f8bc..c14c710 100644
--- a/Doc/library/typing.rst
+++ b/Doc/library/typing.rst
@@ -707,7 +707,7 @@ These can be used as types in annotations using ``[]``, each having a unique syn
def with_lock(f: Callable[Concatenate[Lock, P], R]) -> Callable[P, R]:
'''A type-safe decorator which provides a lock.'''
global my_lock
- def inner(*args: P.args, **kwargs: P.kwargs) -> T:
+ def inner(*args: P.args, **kwargs: P.kwargs) -> R:
# Provide the lock as the first argument.
return f(my_lock, *args, **kwargs)
return inner