Use ruff linter to fix issues and provide consistent formatting

This commit is contained in:
Ian Renton
2026-08-15 08:25:54 +01:00
parent 7391c28cd0
commit af3f82c14d
121 changed files with 1989 additions and 996 deletions
+2 -2
View File
@@ -25,7 +25,7 @@ class SSEBroadcaster:
self._handlers.discard(handler)
def publish(self, value):
self._loop.add_callback(self._broadcast, value)
self._loop.add_callback(self._broadcast, value)
def _broadcast(self, value):
with self._lock:
@@ -36,4 +36,4 @@ class SSEBroadcaster:
except Exception:
# Connection probably dropped, ignore and de-register the handler to stop getting future items.
logging.debug("Failed to push to an SSE client; dropping it")
self.unregister(handler)
self.unregister(handler)