Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 2 additions & 4 deletions adafruit_displayio_layout/layouts/tab_layout.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# SPDX-FileCopyrightText: 2022 Tim Cocks

Check failure on line 1 in adafruit_displayio_layout/layouts/tab_layout.py

View workflow job for this annotation

GitHub Actions / test

reformatted

Check failure on line 1 in adafruit_displayio_layout/layouts/tab_layout.py

View workflow job for this annotation

GitHub Actions / test

reformatted
#
# SPDX-License-Identifier: MIT

Expand Down Expand Up @@ -87,10 +87,8 @@
):
if display is None:
# pylint: disable=import-outside-toplevel
import board

if hasattr(board, "DISPLAY"):
display = board.DISPLAY
import board
display = getattr(board, "DISPLAY", None)
if inactive_tab_spritesheet is None:
raise AttributeError("Must pass inactive_tab_spritesheet")
if showing_tab_spritesheet is None:
Expand Down
Loading