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.
1 parent cef3a99 commit fcbff77Copy full SHA for fcbff77
Doc/library/typing.rst
@@ -194,6 +194,10 @@ For example::
194
on_error: Callable[[int, Exception], None]) -> None:
195
# Body
196
197
+ async def on_update(value: str) -> None:
198
+ # Body
199
+ callback: Callable[[str], Awaitable[None]] = on_update
200
+
201
It is possible to declare the return type of a callable without specifying
202
the call signature by substituting a literal ellipsis
203
for the list of arguments in the type hint: ``Callable[..., ReturnType]``.
0 commit comments