Update typing (1) (#63922)

This commit is contained in:
Marc Mueller 2022-01-11 21:26:03 +01:00 committed by GitHub
parent 4e2cd1bec0
commit d3b7bd25ef
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
11 changed files with 30 additions and 30 deletions

View file

@ -15,7 +15,7 @@ import logging
import pathlib
import sys
from types import ModuleType
from typing import TYPE_CHECKING, Any, Callable, Dict, TypedDict, TypeVar, cast
from typing import TYPE_CHECKING, Any, Callable, TypedDict, TypeVar, cast
from awesomeversion import (
AwesomeVersion,
@ -159,9 +159,9 @@ async def async_get_custom_components(
if isinstance(reg_or_evt, asyncio.Event):
await reg_or_evt.wait()
return cast(Dict[str, "Integration"], hass.data.get(DATA_CUSTOM_COMPONENTS))
return cast(dict[str, "Integration"], hass.data.get(DATA_CUSTOM_COMPONENTS))
return cast(Dict[str, "Integration"], reg_or_evt)
return cast(dict[str, "Integration"], reg_or_evt)
async def async_get_config_flows(hass: HomeAssistant) -> set[str]: