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 377f12f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions picamera2/picamera2.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 377f12f

Please sign in to comment.