From 7bc10c1097038509c179747d33c55a31562b242a Mon Sep 17 00:00:00 2001 From: David Lechner Date: Sat, 4 May 2024 18:25:30 -0500 Subject: [PATCH] black: format code with black 24 --- pybricksdev/ble/lwp3/messages.py | 9 +++------ pybricksdev/flash.py | 9 ++++++--- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/pybricksdev/ble/lwp3/messages.py b/pybricksdev/ble/lwp3/messages.py index 254758c..fe85479 100644 --- a/pybricksdev/ble/lwp3/messages.py +++ b/pybricksdev/ble/lwp3/messages.py @@ -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__( @@ -1496,8 +1494,7 @@ def __init__( feedback2: Feedback, port3: PortID, feedback3: Feedback, - ) -> None: - ... + ) -> None: ... def __init__( self, diff --git a/pybricksdev/flash.py b/pybricksdev/flash.py index 9c28fc6..039cf3a 100644 --- a/pybricksdev/flash.py +++ b/pybricksdev/flash.py @@ -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)