Skip to content

Commit 765a384

Browse files
committed
fix syntax, remove some ruff rule disables
1 parent 7601917 commit 765a384

File tree

2 files changed

+1
-4
lines changed

2 files changed

+1
-4
lines changed

circuitpython_typing/displayio.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,4 +17,4 @@
1717
from epaperdisplay import EPaperDisplay
1818
from framebufferio import FramebufferDisplay
1919

20-
AnyDisplay: TypeAlias = Union[BusDisplay | EPaperDisplay | FramebufferDisplay]
20+
AnyDisplay: TypeAlias = Union[BusDisplay, EPaperDisplay, FramebufferDisplay]

ruff.toml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -89,10 +89,7 @@ ignore = [
8989
"PLR2004", # magic-value-comparison
9090
"UP030", # format literals
9191
"PLW1514", # unspecified-encoding
92-
"PLR0912", # too-many-branches
9392
"PLR0913", # too-many-arguments
94-
"PLR0914", # too-many-locals
95-
"PLR0915", # too-many-statements
9693
"PLR0917", # too-many-positional-arguments
9794

9895
]

0 commit comments

Comments
 (0)