1
0
mirror of https://github.com/home-assistant/core.git synced 2025-12-24 04:50:05 +00:00
Files
core/tests/typing.py
2023-01-31 08:48:35 +01:00

12 lines
395 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
ClientSessionGenerator = Callable[..., Coroutine[Any, Any, TestClient]]
WebSocketGenerator = Callable[..., Coroutine[Any, Any, ClientWebSocketResponse]]