mirror of
https://github.com/esphome/aioesphomeapi.git
synced 2024-11-22 12:05:12 +01:00
Bump mypy from 0.942 to 0.950 (#204)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Jesse Hills <3060199+jesserockz@users.noreply.github.com>
This commit is contained in:
parent
b546c3eda4
commit
6b6828043b
@ -5,7 +5,7 @@ import socket
|
||||
import time
|
||||
from contextlib import suppress
|
||||
from dataclasses import astuple, dataclass
|
||||
from typing import Any, Awaitable, Callable, List, Optional
|
||||
from typing import Any, Callable, Coroutine, List, Optional
|
||||
|
||||
from google.protobuf import message
|
||||
|
||||
@ -77,7 +77,7 @@ class APIConnection:
|
||||
"""
|
||||
|
||||
def __init__(
|
||||
self, params: ConnectionParams, on_stop: Callable[[], Awaitable[None]]
|
||||
self, params: ConnectionParams, on_stop: Callable[[], Coroutine[Any, Any, None]]
|
||||
):
|
||||
self._params = params
|
||||
self.on_stop = on_stop
|
||||
|
@ -57,7 +57,7 @@ async def main(argv: List[str]) -> None:
|
||||
)
|
||||
has_connects = True
|
||||
except APIConnectionError:
|
||||
cli.disconnect()
|
||||
await cli.disconnect()
|
||||
|
||||
async def on_disconnect() -> None:
|
||||
_LOGGER.warning("Disconnected from API")
|
||||
|
@ -2,7 +2,7 @@ pylint==2.13.9
|
||||
black==22.3.0
|
||||
flake8==4.0.1
|
||||
isort==5.10.1
|
||||
mypy==0.942
|
||||
mypy==0.950
|
||||
types-protobuf==3.19.20
|
||||
pytest>=6.2.4,<8
|
||||
pytest-asyncio>=0.15.1,<1
|
||||
|
Loading…
Reference in New Issue
Block a user