2023-01-30 13:40:07 +01:00
|
|
|
"""Typing helpers for Home Assistant tests."""
|
|
|
|
from __future__ import annotations
|
|
|
|
|
|
|
|
from collections.abc import Callable, Coroutine
|
|
|
|
from typing import Any
|
|
|
|
|
|
|
|
from aiohttp import ClientWebSocketResponse
|
|
|
|
from aiohttp.test_utils import TestClient
|
|
|
|
|
2023-01-31 08:48:35 +01:00
|
|
|
ClientSessionGenerator = Callable[..., Coroutine[Any, Any, TestClient]]
|
|
|
|
WebSocketGenerator = Callable[..., Coroutine[Any, Any, ClientWebSocketResponse]]
|