Use PEP 695 type alias in tests (#117797)

This commit is contained in:
Marc Mueller 2024-05-20 19:03:04 +02:00 committed by GitHub
parent e8aa4b069a
commit 1ad8151bd1
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
29 changed files with 38 additions and 37 deletions

View file

@ -39,7 +39,7 @@ from tests.test_util.aiohttp import AiohttpClientMocker
EXPIRED_TOKEN_TIMESTAMP = datetime.datetime(2022, 4, 8).timestamp()
# Typing helpers
HassApi = Callable[[], Awaitable[dict[str, Any]]]
type HassApi = Callable[[], Awaitable[dict[str, Any]]]
TEST_EVENT_SUMMARY = "Test Summary"
TEST_EVENT_DESCRIPTION = "Test Description"