Thanks to visit codestin.com Credit goes to github.com
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 a48d31f commit e7de543Copy full SHA for e7de543
Doc/library/typing.rst
@@ -211,6 +211,10 @@ For example::
211
on_error: Callable[[int, Exception], None]) -> None:
212
# Body
213
214
+ async def on_update(value: str) -> None:
215
+ # Body
216
+ callback: Callable[[str], Awaitable[None]] = on_update
217
+
218
It is possible to declare the return type of a callable without specifying
219
the call signature by substituting a literal ellipsis
220
for the list of arguments in the type hint: ``Callable[..., ReturnType]``.
0 commit comments