Skip to content

Commit 68e1f25

Browse files
authored
Fix a typo in docs for typing.Concatenate (#24169)
Return param spec should be R, not T
1 parent 11ef53a commit 68e1f25

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Doc/library/typing.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -707,7 +707,7 @@ These can be used as types in annotations using ``[]``, each having a unique syn
707707
def with_lock(f: Callable[Concatenate[Lock, P], R]) -> Callable[P, R]:
708708
'''A type-safe decorator which provides a lock.'''
709709
global my_lock
710-
def inner(*args: P.args, **kwargs: P.kwargs) -> T:
710+
def inner(*args: P.args, **kwargs: P.kwargs) -> R:
711711
# Provide the lock as the first argument.
712712
return f(my_lock, *args, **kwargs)
713713
return inner

0 commit comments

Comments
 (0)