Improve annotations for black.concurrency.cancel
(#4047)
This commit is contained in:
parent
58f31a70ef
commit
1b6b0bfcac
@ -38,7 +38,7 @@ def maybe_install_uvloop() -> None:
|
|||||||
pass
|
pass
|
||||||
|
|
||||||
|
|
||||||
def cancel(tasks: Iterable["asyncio.Task[Any]"]) -> None:
|
def cancel(tasks: Iterable["asyncio.Future[Any]"]) -> None:
|
||||||
"""asyncio signal handler that cancels all `tasks` and reports to stderr."""
|
"""asyncio signal handler that cancels all `tasks` and reports to stderr."""
|
||||||
err("Aborted!")
|
err("Aborted!")
|
||||||
for task in tasks:
|
for task in tasks:
|
||||||
|
Loading…
Reference in New Issue
Block a user