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

Upgrade mypy to 0.711, drop no longer needed workarounds (#24998)

https://mypy-lang.blogspot.com/2019/06/mypy-0711-released.html
This commit is contained in:
Ville Skyttä
2019-07-07 04:58:33 +03:00
committed by Martin Hjelmare
parent b274b10f38
commit e8a5306c23
5 changed files with 9 additions and 13 deletions

View File

@@ -141,9 +141,8 @@ def catch_log_exception(
# Check for partials to properly determine if coroutine function
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
while isinstance(check_func, partial):
check_func = check_func.func
wrapper_func = None
if asyncio.iscoroutinefunction(check_func):