Improve annotations for black.concurrency.cancel (#4047)

This commit is contained in:
Alex Waygood 2023-11-17 15:57:00 +00:00 committed by GitHub
parent 58f31a70ef
commit 1b6b0bfcac
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -38,7 +38,7 @@ def maybe_install_uvloop() -> None:
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."""
err("Aborted!")
for task in tasks: