Skip to content

Commit

Permalink
Bump mypy from 1.10.1 to 1.11.1 (#913)
Browse files Browse the repository at this point in the history
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: J. Nick Koston <nick@koston.org>
  • Loading branch information
dependabot[bot] and bdraco committed Aug 11, 2024
1 parent 65489f8 commit 1b85443
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion aioesphomeapi/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -328,7 +328,7 @@ def _on_stop(

async def start_connection(
self,
on_stop: Callable[[bool], Awaitable[None]] | None = None,
on_stop: Callable[[bool], Coroutine[Any, Any, None]] | None = None,
) -> None:
"""Start connecting to the device."""
if self._connection is not None:
Expand Down
2 changes: 1 addition & 1 deletion aioesphomeapi/client_callbacks.py
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ def on_bluetooth_handle_message(

def on_bluetooth_message_types(
address: int,
msg_types: tuple[type[message.Message]],
msg_types: tuple[type[message.Message], ...],
msg: (
BluetoothGATTErrorResponse
| BluetoothGATTNotifyResponse
Expand Down
4 changes: 2 additions & 2 deletions aioesphomeapi/connection.py
Original file line number Diff line number Diff line change
Expand Up @@ -218,12 +218,12 @@ class APIConnection:
def __init__(
self,
params: ConnectionParams,
on_stop: Callable[[bool], None],
on_stop: Callable[[bool], None] | None,
debug_enabled: bool,
log_name: str | None,
) -> None:
self._params = params
self.on_stop: Callable[[bool], None] | None = on_stop
self.on_stop = on_stop
self._socket: socket.socket | None = None
self._frame_helper: None | APINoiseFrameHelper | APIPlaintextFrameHelper = None
self.api_version: APIVersion | None = None
Expand Down
2 changes: 1 addition & 1 deletion requirements_test.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ pylint==3.2.6
black==24.8.0
flake8==7.1.1
isort==5.13.2
mypy==1.10.1
mypy==1.11.1
types-protobuf==5.27.0.20240626
pytest>=6.2.4,<9
pytest-asyncio==0.23.8
Expand Down

0 comments on commit 1b85443

Please sign in to comment.