diff --git a/Doc/library/typing.rst b/Doc/library/typing.rst index 202f5b5e8fe..c0af2ed7c42 100644 --- a/Doc/library/typing.rst +++ b/Doc/library/typing.rst @@ -194,6 +194,10 @@ For example:: on_error: Callable[[int, Exception], None]) -> None: # Body + async def on_update(value: str) -> None: + # Body + callback: Callable[[str], Awaitable[None]] = on_update + It is possible to declare the return type of a callable without specifying the call signature by substituting a literal ellipsis for the list of arguments in the type hint: ``Callable[..., ReturnType]``.