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:
dependabot[bot] 2024-08-11 06:39:01 -05:00 committed by GitHub
parent 65489f8327
commit 1b8544385c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 5 additions and 5 deletions

View File

@ -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:

View File

@ -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

View File

@ -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

View File

@ -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