Skip to content

Commit 3cd3c6e

Browse files
committed
Fix formatting
1 parent bfc6140 commit 3cd3c6e

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

adafruit_fruitjam/peripherals.py

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -75,14 +75,13 @@ def request_display_config(width=None, height=None, color_depth=None):
7575
# if user does not specify width, use default configuration
7676
if width is None and (width := os.getenv("CIRCUITPY_DISPLAY_WIDTH")) is None:
7777
raise ValueError("No CIRCUITPY_DISPLAY_WIDTH specified in settings.toml.")
78-
78+
7979
# check that we have a valid display size
80-
if (
81-
(height is not None and (width, height) not in VALID_DISPLAY_SIZES) or
82-
(height is None and width not in [size[0] for size in VALID_DISPLAY_SIZES])
80+
if (height is not None and (width, height) not in VALID_DISPLAY_SIZES) or (
81+
height is None and width not in [size[0] for size in VALID_DISPLAY_SIZES]
8382
):
8483
raise ValueError(f"Invalid display size. Must be one of: {VALID_DISPLAY_SIZES}")
85-
84+
8685
# if user does not specify height, use matching height
8786
if height is None:
8887
height = next((h for w, h in VALID_DISPLAY_SIZES if width == w))

0 commit comments

Comments
 (0)