From fc395de5111fa9944750c86e97520ba71cf43d7d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ville=20Skytt=C3=A4?= Date: Wed, 3 Jun 2020 23:51:44 +0300 Subject: [PATCH] Upgrade mypy to 0.780 (#36416) http://mypy-lang.blogspot.com/2020/06/mypy-0780-released.html --- homeassistant/bootstrap.py | 1 + requirements_test.txt | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/homeassistant/bootstrap.py b/homeassistant/bootstrap.py index a4c5fa14fa8..4d8b421c598 100644 --- a/homeassistant/bootstrap.py +++ b/homeassistant/bootstrap.py @@ -359,6 +359,7 @@ async def _async_set_up_integrations( errors = [domain for domain in domains if futures[domain].exception()] for domain in errors: exception = futures[domain].exception() + assert exception is not None _LOGGER.error( "Error setting up integration %s - received exception", domain, diff --git a/requirements_test.txt b/requirements_test.txt index 60d085752ed..53314f1598e 100644 --- a/requirements_test.txt +++ b/requirements_test.txt @@ -7,7 +7,7 @@ asynctest==0.13.0 codecov==2.1.0 coverage==5.1 mock-open==1.4.0 -mypy==0.770 +mypy==0.780 pre-commit==2.4.0 pylint==2.4.4 astroid==2.3.3