1
0
mirror of https://github.com/home-assistant/core.git synced 2025-12-24 12:59:34 +00:00

Upgrade mypy to 0.710 (#24666)

* Upgrade mypy to 0.710

* Address mypy 0.710 errors
This commit is contained in:
Ville Skyttä
2019-06-22 10:19:36 +03:00
committed by GitHub
parent f189367c02
commit a6eef22fbc
8 changed files with 18 additions and 14 deletions

View File

@@ -141,8 +141,9 @@ def catch_log_exception(
# Check for partials to properly determine if coroutine function
check_func = func
while isinstance(check_func, partial):
check_func = check_func.func
# type ignores: https://github.com/python/typeshed/pull/3077
while isinstance(check_func, partial): # type: ignore
check_func = check_func.func # type: ignore
wrapper_func = None
if asyncio.iscoroutinefunction(check_func):