Upgrade mypy to 0.730, address raised issues (#26959)

https://mypy-lang.blogspot.com/2019/09/mypy-730-released.html
This commit is contained in:
Ville Skyttä 2019-09-27 22:57:59 +03:00 committed by GitHub
parent 77654da341
commit fde128d66c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
11 changed files with 25 additions and 19 deletions

View file

@ -251,8 +251,10 @@ class NotifyAuthModule(MultiFactorAuthModule):
_LOGGER.error("Cannot find user %s", user_id)
return
await self.async_notify( # type: ignore
code, notify_setting.notify_service, notify_setting.target
await self.async_notify(
code,
notify_setting.notify_service, # type: ignore
notify_setting.target,
)
async def async_notify(

View file

@ -215,8 +215,9 @@ class TotpSetupFlow(SetupFlow):
else:
hass = self._auth_module.hass
self._ota_secret, self._url, self._image = await hass.async_add_executor_job( # type: ignore
_generate_secret_and_qr_code, str(self._user.name)
self._ota_secret, self._url, self._image = await hass.async_add_executor_job(
_generate_secret_and_qr_code, # type: ignore
str(self._user.name),
)
return self.async_show_form(