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
29 changed files with 38 additions and 37 deletions

View File

@@ -23,7 +23,7 @@ SERVER_URL = "http://127.0.0.1:8083"
CONFIG_ENTRY_DATA = {"server_url": SERVER_URL}
# Typing helpers
ComponentSetup = Callable[[], Awaitable[None]]
type ComponentSetup = Callable[[], Awaitable[None]]
type AsyncYieldFixture[_T] = AsyncGenerator[_T, None]