From b1be9a742a079d9fb72d37f64f1b177dfb1bd7f7 Mon Sep 17 00:00:00 2001 From: Mathieu Velten Date: Tue, 22 Nov 2022 17:23:44 +0100 Subject: Add type ignore unused-awaitable to places adding callbacks to a deffered --- synapse/logging/opentracing.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'synapse/logging/opentracing.py') diff --git a/synapse/logging/opentracing.py b/synapse/logging/opentracing.py index b69060854f..180061c99e 100644 --- a/synapse/logging/opentracing.py +++ b/synapse/logging/opentracing.py @@ -908,7 +908,7 @@ def _custom_sync_async_decorator( scope.__exit__(None, None, None) return result - result.addCallbacks(call_back, err_back) + result.addCallbacks(call_back, err_back) # type: ignore[unused-awaitable] else: if inspect.isawaitable(result): -- cgit 1.5.1