Skip to content

Commit

Permalink
black: format code with black 24
Browse files Browse the repository at this point in the history
  • Loading branch information
dlech committed May 4, 2024
1 parent cd8e427 commit 7bc10c1
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
9 changes: 3 additions & 6 deletions pybricksdev/ble/lwp3/messages.py
Original file line number Diff line number Diff line change
Expand Up @@ -1478,14 +1478,12 @@ def __repr__(self) -> str:

class PortOutputCommandFeedbackMessage(AbstractMessage):
@overload
def __init__(self, port: PortID, feedback: Feedback) -> None:
...
def __init__(self, port: PortID, feedback: Feedback) -> None: ...

@overload
def __init__(
self, port1: PortID, feedback1: Feedback, port2: PortID, feedback2: Feedback
) -> None:
...
) -> None: ...

@overload
def __init__(
Expand All @@ -1496,8 +1494,7 @@ def __init__(
feedback2: Feedback,
port3: PortID,
feedback3: Feedback,
) -> None:
...
) -> None: ...

def __init__(
self,
Expand Down
9 changes: 6 additions & 3 deletions pybricksdev/flash.py
Original file line number Diff line number Diff line change
Expand Up @@ -198,9 +198,12 @@ async def flash(self, firmware, metadata):
# have a few hacks to special case this. City hub further complicates
# things by having a buggy Bluetooth implementation in its bootloader.
response = await self.bootloader_request(
self.ERASE_FLASH_CITY_HUB
if info.type_id == HubKind.CITY and not platform.system() == "Windows"
else self.ERASE_FLASH,
(
self.ERASE_FLASH_CITY_HUB
if info.type_id == HubKind.CITY
and not platform.system() == "Windows"
else self.ERASE_FLASH
),
timeout=5,
)
logger.debug(response)
Expand Down

0 comments on commit 7bc10c1

Please sign in to comment.