Restore outer parentheses to appease Black format checks

This commit is contained in:
johnnohj 2024-08-08 18:00:26 +00:00
parent 7a20c35879
commit 1a52b53bcb

View file

@ -109,15 +109,19 @@ class Chip:
product = dev["product_id"]
# NOTE: If any products are added here, they need added
# to _rp2040_u2if_id() in board.py as well.
# pylint: disable=too-many-boolean-expressions
if (
(
# Raspberry Pi Pico
vendor == 0xCAFE
and product == 0x4005
) or (
)
or (
# Waveshare RP2040 One
vendor == 0x2E8A
and product == 0x103A
) or (
)
or (
# Feather RP2040
# Itsy Bitsy RP2040
# QT Py RP2040
@ -139,6 +143,7 @@ class Chip:
0x8130,
0x0105,
)
)
):
self._chip_id = chips.RP2040_U2IF
return self._chip_id