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
11 changed files with 39 additions and 37 deletions

View File

@@ -11,7 +11,7 @@ from functools import partial
import itertools
import logging
from types import MappingProxyType
from typing import Any, TypedDict, Union, cast
from typing import Any, TypedDict, cast
import async_timeout
import voluptuous as vol
@@ -1110,7 +1110,7 @@ async def _async_stop_scripts_at_shutdown(hass, event):
)
_VarsType = Union[dict[str, Any], MappingProxyType]
_VarsType = dict[str, Any] | MappingProxyType
def _referenced_extract_ids(data: Any, key: str, found: set[str]) -> None: