1
0
mirror of https://github.com/home-assistant/core.git synced 2026-06-01 21:24:17 +01:00
Files
core/tests/typing.py
T

12 lines
396 B
Python

"""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
TestClientGenerator = Callable[..., Coroutine[Any, Any, TestClient]]
TestWebSocketGenerator = Callable[..., Coroutine[Any, Any, ClientWebSocketResponse]]