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/util/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'synapse/util/__init__.py') diff --git a/synapse/util/__init__.py b/synapse/util/__init__.py index 7be9d5f113..c04bbbca44 100644 --- a/synapse/util/__init__.py +++ b/synapse/util/__init__.py @@ -132,7 +132,7 @@ class Clock: call = task.LoopingCall(f, *args, **kwargs) call.clock = self._reactor d = call.start(msec / 1000.0, now=False) - d.addErrback(log_failure, "Looping call died", consumeErrors=False) + d.addErrback(log_failure, "Looping call died", consumeErrors=False) # type: ignore[unused-awaitable] return call def call_later( -- cgit 1.5.1