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:
dependabot[bot] 2022-01-08 13:57:56 +01:00 committed by GitHub
parent ceb2809017
commit 014d81350a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 4 additions and 4 deletions

View File

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

View File

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

View File

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