Partial fix for mypy issues

This commit is contained in:
Ian Renton
2026-09-20 20:42:16 +01:00
parent 93ea27510f
commit 203758fa2d
25 changed files with 244 additions and 147 deletions
+1
View File
@@ -34,6 +34,7 @@ class SSEBroadcaster:
return len(self._handlers)
def publish(self, value: Any) -> None:
assert self._loop is not None, "bind_to_web_server_loop() must be called before publish()"
self._loop.add_callback(self._broadcast, value)
def _broadcast(self, value: Any) -> None: