Skip to content
Merged
Show file tree
Hide file tree
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
57 changes: 27 additions & 30 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

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
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ notebook = "^6.0.3"
pybricks = {version = "^3", allow-prereleases = true}

[tool.poetry.group.lint.dependencies]
black = "^23"
black = ">=23,<25"
flake8 = "^6.0.0"
isort = "^5.12.0"

Expand Down