Updated docstring for start_streaming

This commit is contained in:
jaknapper 2025-05-16 15:29:31 +01:00 committed by Julian Stirling
parent 2d946637eb
commit 8c8c6568c3

View file

@ -81,7 +81,7 @@ class CameraProtocol(Protocol):
def start_streaming(self, main_resolution, buffer_count) -> None: def start_streaming(self, main_resolution, buffer_count) -> None:
"""Start (or stop and restart) the camera with the given resolution """Start (or stop and restart) the camera with the given resolution
for the main stream""" for the main stream, and buffer_count number of images in the buffer"""
... ...
def capture_image(self, stream_name, wait): def capture_image(self, stream_name, wait):
@ -195,7 +195,7 @@ class CameraStub(BaseCamera):
@thing_action @thing_action
def start_streaming(self, main_resolution, buffer_count) -> None: def start_streaming(self, main_resolution, buffer_count) -> None:
"""Start (or stop and restart) the camera with the given resolution """Start (or stop and restart) the camera with the given resolution
for the main stream""" for the main stream, and buffer_count number of images in the buffer"""
raise NotImplementedError("Cameras must not inherit from CameraStub") raise NotImplementedError("Cameras must not inherit from CameraStub")
@thing_action @thing_action