mirror of
https://github.com/home-assistant/core.git
synced 2025-11-08 02:19:31 +00:00
Generics and other type hint improvements (#45250)
This commit is contained in:
@@ -9,6 +9,8 @@ from homeassistant import bootstrap
|
||||
from homeassistant.core import callback
|
||||
from homeassistant.helpers.frame import warn_use
|
||||
|
||||
# mypy: disallow-any-generics
|
||||
|
||||
#
|
||||
# Python 3.8 has significantly less workers by default
|
||||
# than Python 3.7. In order to be consistent between
|
||||
@@ -81,7 +83,7 @@ class HassEventLoopPolicy(asyncio.DefaultEventLoopPolicy): # type: ignore[valid
|
||||
|
||||
|
||||
@callback
|
||||
def _async_loop_exception_handler(_: Any, context: Dict) -> None:
|
||||
def _async_loop_exception_handler(_: Any, context: Dict[str, Any]) -> None:
|
||||
"""Handle all exception inside the core loop."""
|
||||
kwargs = {}
|
||||
exception = context.get("exception")
|
||||
|
||||
Reference in New Issue
Block a user