mirror of
https://github.com/esphome/aioesphomeapi.git
synced 2024-11-15 10:55:13 +01:00
Bump mypy from 1.10.1 to 1.11.1 (#913)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: J. Nick Koston <nick@koston.org>
This commit is contained in:
parent
65489f8327
commit
1b8544385c
@ -328,7 +328,7 @@ class APIClient:
|
||||
|
||||
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:
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user