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:
dependabot[bot] 2022-05-18 15:39:03 +12:00 committed by GitHub
parent b546c3eda4
commit 6b6828043b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 4 additions and 4 deletions

View File

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

View File

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

View File

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