From: Johan Dahlin Date: Fri, 8 Jan 2021 18:08:21 +0000 (-0300) Subject: Fix a typo in docs for typing.Concatenate (#24169) X-Git-Tag: v3.10.0a5~119 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=68e1f259bee7723d63488854b69a4bef2b7e5db2;p=thirdparty%2FPython%2Fcpython.git Fix a typo in docs for typing.Concatenate (#24169) Return param spec should be R, not T --- diff --git a/Doc/library/typing.rst b/Doc/library/typing.rst index d74f8bcc27a2..c14c71081338 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