mirror of
https://github.com/esphome/aioesphomeapi.git
synced 2025-01-21 21:31:36 +01:00
Bump mypy from 0.910 to 0.930 (#156)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Otto winter <otto@otto-winter.com>
This commit is contained in:
parent
ceb2809017
commit
014d81350a
@ -226,7 +226,7 @@ class APIConnection:
|
||||
|
||||
# Re-check connection state
|
||||
if not self._is_socket_open:
|
||||
return
|
||||
return # type: ignore[unreachable]
|
||||
|
||||
try:
|
||||
await self._ping()
|
||||
|
@ -73,12 +73,12 @@ class APIModelBase:
|
||||
for f in fields(cls)
|
||||
if f.name in data or (not ignore_missing)
|
||||
}
|
||||
return cls(**init_args) # type: ignore
|
||||
return cls(**init_args)
|
||||
|
||||
@classmethod
|
||||
def from_pb(cls: Type[_V], data: Any) -> _V:
|
||||
init_args = {f.name: getattr(data, f.name) for f in fields(cls)}
|
||||
return cls(**init_args) # type: ignore
|
||||
return cls(**init_args)
|
||||
|
||||
|
||||
def converter_field(*, converter: Callable[[Any], _V], **kwargs: Any) -> _V:
|
||||
|
@ -2,7 +2,7 @@ pylint==2.12.2
|
||||
black==21.12b0
|
||||
flake8==4.0.1
|
||||
isort==5.10.1
|
||||
mypy==0.910
|
||||
mypy==0.930
|
||||
types-protobuf==3.18.3
|
||||
pytest>=6.2.4,<7
|
||||
pytest-asyncio>=0.15.1,<1
|
||||
|
Loading…
Reference in New Issue
Block a user