Skip to content

Commit

Permalink
suppress configure() type errors
Browse files Browse the repository at this point in the history
  • Loading branch information
pantheraleo-7 committed Dec 12, 2024
1 parent f6b3563 commit 7205ade
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion picamera2/picamera2.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit 7205ade

Please sign in to comment.