Add ANN20X rules to ruff

This commit is contained in:
Julian Stirling 2025-08-27 14:00:49 +01:00
parent d673196671
commit 4c46330959
20 changed files with 98 additions and 86 deletions

View file

@ -133,7 +133,7 @@ class CameraMemoryBuffer:
"No image with matching id in memory to retrieve."
) from e
def clear(self):
def clear(self) -> None:
"""Clear all images from memory."""
self._storage.clear()
@ -208,7 +208,7 @@ class BaseCamera(lt.Thing):
"CameraThings must define their own start_streaming method"
)
def kill_mjpeg_streams(self):
def kill_mjpeg_streams(self) -> None:
"""Kill the streams now as the server is shutting down.
This is called when uvicorn gets the a shutdown signal. As this is called from