From 7205ade18b0451d3da44f3c409379510edf7915b 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 --- picamera2/picamera2.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/picamera2/picamera2.py b/picamera2/picamera2.py index 72f57e42..e20864e3 100644 --- a/picamera2/picamera2.py +++ b/picamera2/picamera2.py @@ -1130,7 +1130,7 @@ 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: + def configure(self, camera_config=None) -> None: """Configure the camera system with the given configuration.""" self.configure_(camera_config)