Update Union typing (4) [Py310] (#86427)

This commit is contained in:
Marc Mueller 2023-01-23 09:04:40 +01:00 committed by GitHub
parent b0ed0d5d41
commit 8abce25948
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
11 changed files with 39 additions and 37 deletions

View file

@ -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