From b030af839792b1df9b332ff21a49a18cf9445f1e Mon Sep 17 00:00:00 2001 From: "sentry-junior[bot]" <264270552+sentry-junior[bot]@users.noreply.github.com> Date: Mon, 16 Nov 2026 09:33:51 +0000 Subject: [PATCH] ci(mypy): Enable unused-awaitable error code Flag discarded awaitables like a bare asyncio.ensure_future(...), whose task can be garbage-collected before it finishes. Co-Authored-By: Ivana Kellyer <131587164+sentrivana@users.noreply.github.com> --- pyproject.toml | 1 + 1 file changed, 1 insertion(+) diff --git a/pyproject.toml b/pyproject.toml index cfac620006..c1ff7132c5 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -146,6 +146,7 @@ disallow_incomplete_defs = true disallow_subclassing_any = true disallow_untyped_decorators = true disallow_untyped_defs = true +enable_error_code = ["unused-awaitable"] no_implicit_optional = true python_version = "3.11" strict_equality = true