From 2ee0202c28f3c31dbef27353205f9be3a4c6bec2 Mon Sep 17 00:00:00 2001 From: Asadullah Shaikh Date: Thu, 12 Dec 2024 09:53:05 +0530 Subject: [PATCH] Suppress `configure()` type errors Signed-off-by: Asadullah Shaikh --- picamera2/picamera2.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/picamera2/picamera2.py b/picamera2/picamera2.py index 72f57e42..30a14a5d 100644 --- a/picamera2/picamera2.py +++ b/picamera2/picamera2.py @@ -1130,8 +1130,8 @@ def configure_(self, camera_config="preview") -> None: scaler_crops.append(par_crop[1] if camera_config["lores"]["preserve_ar"] else scaler_crops[0]) self.set_controls({"ScalerCrops": scaler_crops}) - def configure(self, camera_config="preview") -> None: - """Configure the camera system with the given configuration.""" + def configure(self, camera_config=None) -> None: + """Configure the camera system with the given configuration. Defaults to the 'preview' configuration.""" self.configure_(camera_config) def camera_configuration(self) -> dict: