We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1066ecb commit 9588f88Copy full SHA for 9588f88
Doc/library/typing.rst
@@ -221,6 +221,10 @@ For example::
221
on_error: Callable[[int, Exception], None]) -> None:
222
# Body
223
224
+ async def on_update(value: str) -> None:
225
+ # Body
226
+ callback: Callable[[str], Awaitable[None]] = on_update
227
+
228
It is possible to declare the return type of a callable without specifying
229
the call signature by substituting a literal ellipsis
230
for the list of arguments in the type hint: ``Callable[..., ReturnType]``.
0 commit comments