Use PEP 695 for simple type aliases (#117633)
This commit is contained in:
parent
4edee94a81
commit
87bb7ced79
78 changed files with 139 additions and 140 deletions
|
@ -30,7 +30,7 @@ from .json import find_paths_unserializable_data, json_bytes, json_dumps
|
|||
_LOGGER = logging.getLogger(__name__)
|
||||
|
||||
|
||||
AllowCorsType = Callable[[AbstractRoute | AbstractResource], None]
|
||||
type AllowCorsType = Callable[[AbstractRoute | AbstractResource], None]
|
||||
KEY_AUTHENTICATED: Final = "ha_authenticated"
|
||||
KEY_ALLOW_ALL_CORS = AppKey[AllowCorsType]("allow_all_cors")
|
||||
KEY_ALLOW_CONFIGRED_CORS = AppKey[AllowCorsType]("allow_configured_cors")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue