Update Union typing (4) [Py310] (#86427)
This commit is contained in:
parent
b0ed0d5d41
commit
8abce25948
11 changed files with 39 additions and 37 deletions
|
@ -9,7 +9,7 @@ import inspect
|
|||
from json import JSONEncoder
|
||||
import logging
|
||||
import os
|
||||
from typing import Any, Generic, TypeVar, Union
|
||||
from typing import Any, Generic, TypeVar
|
||||
|
||||
from homeassistant.const import EVENT_HOMEASSISTANT_FINAL_WRITE
|
||||
from homeassistant.core import CALLBACK_TYPE, CoreState, Event, HomeAssistant, callback
|
||||
|
@ -24,7 +24,7 @@ _LOGGER = logging.getLogger(__name__)
|
|||
|
||||
STORAGE_SEMAPHORE = "storage_semaphore"
|
||||
|
||||
_T = TypeVar("_T", bound=Union[Mapping[str, Any], Sequence[Any]])
|
||||
_T = TypeVar("_T", bound=Mapping[str, Any] | Sequence[Any])
|
||||
|
||||
|
||||
@bind_hass
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue