Add typehints and docstrings as suggested in review

This commit is contained in:
Julian Stirling 2025-06-25 15:55:48 +01:00
parent 0933ece63a
commit ce5b5b781c
2 changed files with 13 additions and 4 deletions

View file

@ -444,7 +444,7 @@ class StreamingPiCamera2(BaseCamera):
self,
stream_name: Literal["main", "lores", "raw"] = "main",
wait: Optional[float] = 0.9,
):
) -> None:
"""Acquire one image from the camera.
Return it as a PIL Image